/* Экран входа: сцена с пузырём (до свайпа) и карта доступа (после) */

.login-screen {
	position: relative;
	display: block;
	height: 100vh;
	height: 100dvh;
	overflow: hidden;
	touch-action: none;
	user-select: none;
	-webkit-user-select: none;
}

/* Фоновый кадр с тёплой подсветкой: затемнение из макета */

.login-stage {
	position: fixed;
	inset: -3%;
	z-index: 0;
	overflow: hidden;
}

.login-stage::before {
	content: '';
	position: absolute;
	inset: -3%;
	background-color: #171210;
	background-image: url('/images/background.jpg?v=2'),
		radial-gradient(78% 66% at 20% 80%, rgba(242, 166, 90, .18), transparent 62%),
		linear-gradient(200deg, #2C231C 0%, #181311 54%, #0B0908 100%);
	background-size: cover, cover, cover;
	background-position: center 42%, center, center;
	background-repeat: no-repeat;
}

.login-stage::after {
	content: '';
	position: absolute;
	inset: 0;
	background:
		radial-gradient(120% 80% at 50% 100%, rgba(6, 5, 4, .70), rgba(8, 6, 4, .20) 62%),
		linear-gradient(180deg, rgba(9, 7, 5, .62) 0%, rgba(9, 7, 5, .26) 38%, rgba(9, 7, 5, .70) 100%);
}

/* Слой сцены: тексты, пузырь, орбы, подсказка */

.login-scene {
	position: fixed;
	inset: 0;
	z-index: 1;
	touch-action: none;
	cursor: grab;
	transition: opacity .45s ease, visibility .45s;
}

.login-scene.is-dragging {
	cursor: grabbing;
}

.login-scene.is-hidden {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

/* Слой текстов: настоящий текст и его преломление в пузыре */

.login-texts {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

/* Вступительный заголовок */

.login-intro {
	position: absolute;
	left: 0;
	right: 0;
	top: 36%;
	padding: 0 30px;
	text-align: center;
	opacity: var(--login-t1);
}

.login-intro h1 {
	margin: 0;
	font-size: 30px;
	line-height: 1.16;
	font-weight: 200;
	letter-spacing: -.03em;
}

/* Лид, проявляющийся к концу свайпа */

.login-lede {
	position: absolute;
	left: 0;
	right: 0;
	top: 53%;
	padding: 0 26px;
	text-align: center;
	margin: 0;
	font-size: 22px;
	line-height: 1.26;
	font-weight: 200;
	letter-spacing: -.026em;
	opacity: var(--login-t2, 0);
}

/* Подсказка о свайпе */

.login-hint {
	position: absolute;
	left: 0;
	right: 0;
	bottom: calc(env(safe-area-inset-bottom, 0px) + 26px);
	margin: 0;
	text-align: center;
	font-size: 12.5px;
	font-weight: 300;
	color: rgba(255, 255, 255, .75);
	opacity: var(--login-t1, 1);
	animation: login-hint-pulse 2.4s ease-in-out infinite;
}

/* Текст подсказки для экранов компьютеров */

.login-hint-text-desktop {
	display: inline;
}

/* Текст подсказки для мобильных экранов */

.login-hint-text-mobile {
	display: none;
}

/* Пульс подсказки о свайпе */

@keyframes login-hint-pulse {

	0%, 100% {
		transform: translateY(0);
	}

	50% {
		transform: translateY(-4px);
	}

}

/* Отказ при попытке потянуть сцену вниз */

.login-hint.is-denied {
	animation: login-hint-shake .4s ease;
}

@keyframes login-hint-shake {

	0%, 100% {
		transform: translateX(0);
	}

	30% {
		transform: translateX(-7px);
	}

	70% {
		transform: translateX(7px);
	}

}

/* Пузырь: один объект от дуги внизу до шайбы */

.login-bubble {
	position: absolute;
	left: 0;
	top: 0;
	width: 0;
	height: 0;
	border-radius: 50%;
	overflow: hidden;
	pointer-events: none;
}

.b-body {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background:
		radial-gradient(closest-side, rgba(255, 255, 255, 0) 56%, rgba(255, 255, 255, .05) 78%, rgba(255, 255, 255, .20) 94%, rgba(255, 255, 255, 0) 100%),
		radial-gradient(28% 22% at 30% 20%, rgba(255, 255, 255, .34), rgba(255, 255, 255, 0) 70%);
}

/* Ядро: пузырь уплотняется в белую шайбу */

.b-core {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background:
		radial-gradient(22% 18% at 30% 22%, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0) 68%),
		radial-gradient(130% 130% at 30% 22%, #FFFFFF 0%, #F8F3EB 22%, #E9E1D4 46%, #C9BFAE 70%, #A2967F 88%, #C4B9A6 100%);
	box-shadow:
		inset -14px -18px 34px -16px rgba(38, 29, 20, .62),
		inset 10px 12px 22px -14px rgba(255, 255, 255, .95);
	opacity: var(--login-solid, 0);
}

/* Линза: копия текста, увеличенная и разложенная в радугу */

.login-lens {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	overflow: hidden;
	opacity: calc(1 - var(--login-solid));
}

.login-lens-layer {
	position: absolute;
	left: 0;
	top: 0;
	width: 100vw;
	height: 100vh;
	height: 100dvh;
	will-change: transform;
}

.login-lens-layer.c1 {
	filter: blur(.3px);
}

.login-lens-layer.c2 {
	mix-blend-mode: screen;
	opacity: .55;
	filter: blur(.7px) hue-rotate(-45deg) saturate(340%);
}

.login-lens-layer.c3 {
	mix-blend-mode: screen;
	opacity: .55;
	filter: blur(.7px) hue-rotate(155deg) saturate(340%);
}

/* Свет у верхней кромки пузыря */

.b-glow {
	position: absolute;
	left: 50%;
	width: 290px;
	height: 150px;
	border-radius: 50%;
	background: radial-gradient(closest-side, var(--lux-a) 0%, var(--lux-b) 44%, rgba(107, 39, 245, .82) 72%, rgba(107, 39, 245, 0) 100%);
	filter: blur(26px);
	mix-blend-mode: screen;
	transform: translateX(-50%);
}

/* Радужное кольцо вокруг кромки */

.b-ring {
	position: absolute;
	left: 50%;
	width: 400px;
	height: 190px;
	border-radius: 50%;
	background: radial-gradient(closest-side, rgba(141, 244, 255, 0) 42%, var(--lux-a) 56%, var(--lux-b) 70%, rgba(107, 39, 245, .70) 84%, rgba(107, 39, 245, 0) 100%);
	filter: blur(20px);
	mix-blend-mode: screen;
	transform: translateX(-50%);
}

/* Радужная кромка пузыря */

.b-rim {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: conic-gradient(from 200deg, #6B27F5, #2F6BFF 13%, #8DF4FF 26%, #FFFFFF 37%, #FF8AD8 51%, #FFC46B 63%, #8DF4FF 77%, #2F6BFF 89%, #6B27F5);
	-webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.4px), #000 calc(100% - 2.4px));
	mask: radial-gradient(farthest-side, transparent calc(100% - 2.4px), #000 calc(100% - 2.4px));
	filter: blur(1px) saturate(140%);
	mix-blend-mode: screen;
	opacity: var(--login-rim, .35);
}

/* Тень под пузырём */

.login-drop {
	position: absolute;
	left: 0;
	top: 0;
	border-radius: 50%;
	box-shadow: 0 24px 46px -18px rgba(0, 0, 0, .78), 0 6px 14px -6px rgba(0, 0, 0, .45);
	opacity: var(--login-solid, 0);
	pointer-events: none;
}

/* Ореол вокруг пузыря */

.login-halo {
	position: absolute;
	left: 0;
	top: 0;
	border-radius: 50%;
	box-shadow: 0 0 40px 2px rgba(141, 244, 255, .16), 0 0 90px 12px rgba(107, 39, 245, .14);
	pointer-events: none;
	opacity: 0;
}

/* Контейнер вылетающих шариков */

.login-orbs {
	position: absolute;
	left: 0;
	top: 0;
	width: 0;
	height: 0;
	pointer-events: none;
}

/* Шарик-орб */

.login-orb {
	position: absolute;
	border-radius: 50%;
	background-size: cover;
	background-position: center;
	will-change: transform, opacity;
}

/* Карта доступа поверх сцены после полного свайпа */

.login-gate {
	position: absolute;
	inset: 0;
	z-index: 3;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	overflow-y: auto;
	touch-action: none;
	padding: calc(env(safe-area-inset-top, 0px) + 26px) calc(env(safe-area-inset-right, 0px) + 26px) calc(env(safe-area-inset-bottom, 0px) + 26px) calc(env(safe-area-inset-left, 0px) + 26px);
	background-color: rgba(8, 6, 4, .34);
	opacity: 0;
	visibility: hidden;
	transition: opacity .5s ease, visibility .5s;
}

/* Карта доступа видима: затемнение фона и проявление */

.login-gate.is-visible {
	opacity: 1;
	visibility: visible;
}

/* Карточка доступа из макета registration */

.login-card {
	position: relative;
	width: min(400px, calc(100vw - 52px));
	margin: auto;
	border-radius: var(--r-shell);
	background-color: var(--glass-1);
	border: 1px solid var(--edge-soft);
	box-shadow: 0 40px 100px -38px rgba(0, 0, 0, .86), inset 0 1px 0 rgba(255, 240, 222, .11);
	-webkit-backdrop-filter: blur(34px) saturate(155%);
	backdrop-filter: blur(34px) saturate(155%);
	overflow: hidden;
	opacity: 0;
	transform: translateY(16px);
	transition: opacity .5s ease, transform .7s cubic-bezier(.22, .9, .28, 1);
}

.login-gate.is-visible .login-card {
	opacity: 1;
	transform: none;
}

/* Блик на стекле карточки */

.login-card::before {
	content: '';
	position: absolute;
	inset: 0;
	pointer-events: none;
	border-radius: inherit;
	z-index: 4;
	background: linear-gradient(148deg, rgba(255, 241, 224, .10), rgba(255, 241, 224, 0) 42%);
}

/* Шапка карточки: пульсирующая точка и надпись */

.login-card-head {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 34px 34px 0 34px;
}

/* Пульсирующая точка агента */

.login-g-live {
	width: 7px;
	height: 7px;
	flex: none;
	border-radius: 50%;
	background-color: var(--ember);
	box-shadow: var(--seam);
	animation: login-beat 2.6s ease-in-out infinite;
}

/* Пульс точки агента */

@keyframes login-beat {

	0%, 100% {
		opacity: 1;
	}

	50% {
		opacity: .35;
	}

}

/* Надпись в шапке карточки */

.login-g-eyebrow {
	font-size: 11px;
	font-weight: 400;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .72);
}

/* Заголовок карточки */

.login-gate-title {
	margin: 24px 0 0;
	padding: 0 34px;
	font-size: 26px;
	line-height: 1.18;
	font-weight: 200;
	letter-spacing: -.024em;
	color: var(--bone);
}

.login-gate-title b {
	font-weight: 400;
}

/* Слово «выполнения» скрывается на смартфонах, чтобы лид влезал в одну строку */

.login-lede-hide-narrow {
	display: inline;
}

@media (max-width: 768px) {

	.login-lede-hide-narrow {
		display: none;
	}

	.login-hint-text-desktop {
		display: none;
	}

	.login-hint-text-mobile {
		display: inline;
	}

	.login-scene {
		cursor: pointer;
	}

	.login-scene.is-hidden {
		display: none;
		transition: none;
	}

	.login-gate.is-visible {
		transition: none;
	}

	.login-gate.is-visible .login-card {
		transition: none;
	}

}

/* Лид карточки */

.login-gate-lede {
	margin: 11px 0 0;
	padding: 0 34px;
	font-size: 13.5px;
	line-height: 1.5;
	font-weight: 300;
	color: var(--taupe);
}

/* Поля карточки */

.login-fields {
	padding: 34px 34px 16px 34px;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

/* Одно поле формы */

.login-field {
	display: block;
}

/* Подпись поля */

.login-lab {
	display: block;
	margin: 0 0 7px 2px;
	font-size: 11px;
	font-weight: 400;
	letter-spacing: .005em;
	color: rgba(255, 255, 255, .75);
}

/* Капсула поля */

.login-slot {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 11px 16px;
	border-radius: var(--r-block);
	background-color: var(--glass-2);
	border: 1px solid var(--edge-soft);
	transition: border-color .3s, background .3s;
}

.login-slot:focus-within {
	border-color: rgba(242, 166, 90, .42);
	background-color: rgba(20, 16, 13, .66);
}

/* Ввод внутри капсулы */

.access-key-input {
	flex: 1 1 0%;
	min-width: 0;
	border: none;
	background-color: transparent;
	outline: none;
	color: var(--bone);
	font-family: inherit;
	font-weight: 300;
	font-size: 14.5px;
	letter-spacing: -.005em;
	padding: 5px 0;
}

/* Поле ключа набрано моноширинным */

.login-mono .access-key-input {
	font-family: 'JetBrains Mono', ui-monospace, monospace;
	font-size: 13px;
	letter-spacing: .08em;
}

/* Кнопка показа ключа */

.login-peek {
	border: none;
	background-color: transparent;
	cursor: pointer;
	flex: none;
	min-width: 62px;
	text-align: right;
	font-family: 'JetBrains Mono', ui-monospace, monospace;
	font-size: 10px;
	font-weight: 400;
	letter-spacing: .02em;
	color: rgba(255, 255, 255, .72);
	padding: 4px 2px;
	transition: color .25s;
}

.login-peek:hover {
	color: var(--bone);
}

/* Тряска карточки при ошибке входа */

.login-card.is-error {
	animation: login-card-shake .4s ease;
}

@keyframes login-card-shake {

	0%, 100% {
		transform: translateX(0);
	}

	30% {
		transform: translateX(-8px);
	}

	70% {
		transform: translateX(8px);
	}

}

/* Купол со светом внизу карточки: */

.login-dome {
	position: relative;
	height: 138px;
	margin-top: 11px;
	border-radius: 0 0 var(--r-shell) var(--r-shell);
	overflow: hidden;
	isolation: isolate;
}

/* Форма светового купола: */

.login-dome-shape {
	position: absolute;
	left: 50%;
	top: 14px;
	width: 174%;
	aspect-ratio: 1;
	transform: translateX(-50%);
	border-radius: 50%;
	overflow: hidden;
	background: radial-gradient(120% 60% at 50% 0%, rgba(255, 244, 228, .10), rgba(255, 244, 228, .02) 42%, transparent 68%);
	box-shadow: inset 0 1px 0 rgba(255, 246, 232, .20);
}

/* Световое пятно купола: */

.login-g-fill {
	position: absolute;
	left: 50%;
	top: 12px;
	width: 44%;
	height: 100px;
	transform: translate(calc(-50% + var(--login-tx, 0px)), calc(var(--login-k, .06) * -16px)) scale(calc(.60 + var(--login-k, .06) * .58));
	border-radius: 50%;
	background: radial-gradient(closest-side, var(--lux-a) 0%, var(--lux-b) 44%, rgba(107, 39, 245, .82) 72%, rgba(107, 39, 245, 0) 100%);
	filter: blur(34px);
	mix-blend-mode: screen;
	opacity: calc(.12 + var(--login-k, .06) * 1.06);
	will-change: transform, opacity;
}

/* Кольцо света купола: */

.login-g-ring {
	position: absolute;
	left: 50%;
	top: 4px;
	width: 62%;
	height: 120px;
	transform: translate(calc(-50% + var(--login-tx, 0px) * 1.4), calc(var(--login-k, .06) * -26px)) scale(calc(.72 + var(--login-k, .06) * .46));
	border-radius: 50%;
	background: radial-gradient(closest-side, rgba(141, 244, 255, 0) 34%, var(--lux-a) 50%, var(--lux-b) 66%, rgba(107, 39, 245, .72) 82%, rgba(107, 39, 245, 0) 100%);
	filter: blur(24px);
	mix-blend-mode: screen;
	opacity: calc(var(--login-k, .06) * var(--login-k, .06) * 1.35);
	will-change: transform, opacity;
}

/* Радужная дуга купола: */

.login-rim {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: conic-gradient(from 270deg, rgba(107, 39, 245, 0) 0deg, var(--lux-c) 36deg, var(--lux-b) 62deg, var(--lux-a) 90deg, var(--lux-b) 118deg, var(--lux-c) 144deg, rgba(107, 39, 245, 0) 180deg);
	-webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.2px), #000 calc(100% - 2.2px));
	mask: radial-gradient(farthest-side, transparent calc(100% - 2.2px), #000 calc(100% - 2.2px));
	mix-blend-mode: screen;
	opacity: calc(var(--login-k, .06) * var(--login-k, .06) * 1.05);
}

/* Ореол светового купола: */

.login-g-halo {
	position: absolute;
	left: 50%;
	top: 8px;
	width: 174%;
	aspect-ratio: 1;
	transform: translateX(-50%);
	border-radius: 50%;
	background: conic-gradient(from 270deg, rgba(107, 39, 245, 0) 0deg, var(--lux-c) 40deg, var(--lux-b) 90deg, var(--lux-c) 140deg, rgba(107, 39, 245, 0) 180deg);
	-webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 9px), #000 calc(100% - 9px));
	mask: radial-gradient(farthest-side, transparent calc(100% - 9px), #000 calc(100% - 9px));
	filter: blur(16px);
	mix-blend-mode: screen;
	opacity: calc(var(--login-k, .06) * var(--login-k, .06) * .88);
	z-index: 1;
}

/* Низкие экраны: тексты не сталкиваются */

@media (max-height: 520px) {

	.login-intro {
		top: 24%;
	}

	.login-lede {
		top: 46%;
	}

}

/* Очень узкие экраны: карточка компактнее */

@media (max-width: 360px) {

	.login-card-head, .login-gate-title, .login-gate-lede, .login-fields {
		padding-left: 22px;
		padding-right: 22px;
	}

	.login-gate-title {
		font-size: 21px;
	}

	.login-gate-title br {
		display: none;
	}

}

/* Низкие экраны: карта компактнее и прокручивается */

@media (max-height: 720px) {

	.login-gate {
		padding: 14px;
	}

	.login-dome {
		height: 110px;
	}

	.login-enter {
		top: 32px;
		padding: 13px 28px;
	}

	.login-gate-title {
		margin-top: 16px;
		font-size: 21px;
	}

	.login-card-head {
		padding: 20px 26px 0 26px;
	}

	.login-fields {
		padding: 18px 26px 10px 26px;
	}

	.login-gate-lede {
		margin-top: 8px;
	}

	.session-dialog-overlay {
		padding: 20px 12px;
	}

}

/* Уважение к reduced motion: */

@media (prefers-reduced-motion: reduce) {

	.login-g-live {
		animation: none;
	}

}

/* Фокус на кнопке показа ключа: */

.login-peek:focus-visible {

	outline: 2px solid var(--ember);

	outline-offset: 2px;

}

/* Кнопка входа поверх купола: */

.login-enter {
	position: absolute;
	left: 50%;
	top: 44px;
	z-index: 3;
	transform: translateX(-50%);
	min-width: 214px;
	padding: 16px 34px;
	border: none;
	border-radius: var(--r-pill);
	background-color: rgba(243, 237, 228, .94);
	color: #14100D;
	font-family: inherit;
	font-size: 14px;
	font-weight: 400;
	letter-spacing: -.01em;
	cursor: pointer;
	box-shadow: 0 14px 34px -14px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .9);
	transition: background .25s ease, transform .12s ease, box-shadow .25s ease;
}

.login-enter:hover {
	background-color: #ffffff;
	transform: translateX(-50%) translateY(-2px);
	box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .75), inset 0 1px 0 rgba(255, 255, 255, .9);
}

.login-enter:active {
	transform: translateX(-50%) translateY(1px) scale(.985);
	transition-duration: .06s;
}

.login-enter:focus-visible {
	outline: 2px solid var(--ember);
	outline-offset: 4px;
}

.login-enter[data-busy] {
	color: rgba(20, 16, 13, .55);
	pointer-events: none;
}

/* Ошибка входа поверх купола: */

.login-error {
	margin: -8px 2px 0 2px;
	text-align: left;
	color: #FFB4B4;
	font-size: 12.5px;
}

/* Орбы, вылетающие из шайбы при входе: */

.login-gate-orbs {
	position: absolute;
	left: 50%;
	top: 50%;
	z-index: 4;
	transform: translateY(-70px);
	pointer-events: none;
}

.login-gate-orb {
	position: absolute;
	border-radius: 50%;
	opacity: 0;
	box-shadow: inset 0 -6px 14px -6px rgba(0, 0, 0, .5), 0 10px 26px -10px rgba(0, 0, 0, .55);
}

/* Уважение к reduced motion */

@media (prefers-reduced-motion: reduce) {

	.login-g-live {
		animation: none;
	}

	.login-gate.is-visible .login-card {
		animation: none;
	}

}

/* Полёт орбов из шайбы */

@keyframes login-orb-up {

	0% {
		opacity: 0;
		transform: translate(-50%, 0) scale(.18);
	}

	14% {
		opacity: 1;
	}

	100% {
		opacity: 0;
		transform: translate(calc(-50% + var(--login-dx)), var(--login-dy)) scale(1);
	}

}

/* Каркас экрана чата: карты с отступами от краёв экрана */

.chat-screen {
	display: flex;
	flex-direction: row;
	gap: 18px;
	height: 100vh;
	height: 100dvh;
	padding: 26px;
	overflow: hidden;
}

/* Боковая панель чатов: отдельная карта */

.sidebar {
	width: 380px;
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	border-radius: var(--r-shell);
	background-color: var(--glass-1);
	border: 1px solid var(--edge-soft);
	box-shadow: 0 34px 90px -34px rgba(0, 0, 0, .80), inset 0 1px 0 rgba(255, 240, 222, .11);
	-webkit-backdrop-filter: blur(34px) saturate(155%);
	backdrop-filter: blur(34px) saturate(155%);
	position: relative;
	z-index: 10;
	transition: width .3s cubic-bezier(.22, .9, .28, 1);
}

/* Развёрнутая панель бокового меню */

.sidebar-expanded-pane {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	min-height: 0;
	min-width: 0;
	transition: opacity .2s ease;
}

/* Свёрнутая узкая полоска сайдбара */

.sidebar-mini-pane {
	position: absolute;
	inset: 0;
	z-index: 2;
	width: 76px;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 18px 0 22px;
	opacity: 0;
	pointer-events: none;
	transition: opacity .15s linear;
}

/* Свёрнутое состояние боковой панели на ПК */

.chat-screen.is-sidebar-collapsed .sidebar {
	width: 76px;
}

/* Скрытие развёрнутой панели в свёрнутом состоянии */

.chat-screen.is-sidebar-collapsed .sidebar-expanded-pane {
	display: none;
	opacity: 0;
	pointer-events: none;
}

/* Отображение свёрнутой панели в свёрнутом состоянии */

.chat-screen.is-sidebar-collapsed .sidebar-mini-pane {
	opacity: 1;
	pointer-events: auto;
	transition: opacity .26s .15s linear;
}

/* Кнопка на свёрнутой панели */

.sidebar-mini-button {
	position: relative;
	width: 44px;
	height: 44px;
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	border: none;
	border-radius: 16px;
	background-color: transparent;
	color: var(--taupe);
	cursor: pointer;
	transition: color .25s, background-color .25s;
	margin-bottom: 4px;
	padding: 0;
}

/* Наведение на кнопку свёрнутой панели */

.sidebar-mini-button:hover {
	color: var(--bone);
	background-color: rgba(255, 236, 214, .07);
}

/* Активная кнопка свёрнутой панели */

.sidebar-mini-button.is-active-mini-button {
	color: var(--ember);
	background-color: rgba(242, 166, 90, .12);
}

/* Вертикальный световой индикатор активной кнопки */

.sidebar-mini-button.is-active-mini-button::before {
	content: '';
	position: absolute;
	left: -10px;
	top: 13px;
	bottom: 13px;
	width: 2px;
	border-radius: 2px;
	background-color: var(--ember);
	box-shadow: var(--seam);
}

/* Кнопка создания нового чата/проекта в свёрнутом сайдбаре */

.sidebar-mini-new-button {
	border: 1px solid transparent;
	color: var(--taupe);
}

/* Наведение на кнопку создания в свёрнутом сайдбаре */

.sidebar-mini-new-button:hover {
	background-color: rgba(242, 166, 90, .16);
	border-color: rgba(242, 166, 90, .45);
	color: var(--ember);
}

/* Разделитель на свёрнутой панели */

.sidebar-mini-divider {
	width: 24px;
	height: 1px;
	background-color: var(--edge);
	margin: 8px 0;
	flex: 0 0 auto;
}

/* Распорка для прижатия аватара книзу */

.sidebar-mini-spacer {
	flex: 1 1 auto;
}

/* Обертка аватара в свёрнутой панели */

.sidebar-mini-avatar-wrapper {
	position: relative;
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Аватар профиля в свёрнутой панели */

.sidebar-mini-avatar {
	width: 36px;
	height: 36px;
	font-size: 13px;
	font-family: inherit;
	cursor: pointer;
	margin-top: 8px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background-color: rgba(242, 166, 90, .16);
	color: var(--bone);
	border: 1px solid var(--edge);
	transition: border-color .2s, transform .2s;
	padding: 0;
	outline: none;
}

/* Наведение на аватар свёрнутой панели */

.sidebar-mini-avatar:hover {
	border-color: var(--ember);
	transform: scale(1.05);
}

/* Шапка боковой панели со вкладками */

.sidebar-header {
	flex: 0 0 auto;
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 10px;
	min-height: 72px;
	padding: 10px 14px 0 22px;
	border-bottom: 1px solid var(--edge-soft);
}

/* Группа вкладок Чаты, Проекты и Файлы */

.sidebar-tabs {
	flex: 1 1 0%;
	min-width: 0;
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 10px;
}

/* Обертка вкладки со стрелочкой */

.sidebar-tab-wrapper {
	display: flex;
	align-items: center;
	gap: 2px;
	position: relative;
}

/* Кнопка перехода к списку на холсте */

.sidebar-tab-open-button {
	width: 26px;
	height: 26px;
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	border: none;
	border-radius: 9px;
	background-color: transparent;
	color: var(--mute);
	cursor: pointer;
	opacity: 0;
	transform: translateX(-4px);
	transition: opacity .2s, transform .2s, color .2s, background-color .2s;
	padding: 0;
	margin: 0 0 14px 6px;
}

/* Появление кнопки со стрелкой при наведении на вкладку */

.sidebar-tab-wrapper:hover .sidebar-tab-open-button,
.sidebar-tab-open-button:focus-visible {
	opacity: 1;
	transform: none;
}

/* Подсветка кнопки со стрелкой при наведении */

.sidebar-tab-open-button:hover {
	color: var(--ember);
	background-color: rgba(242, 166, 90, .14);
}

/* Одна вкладка списка: текст с оранжевым подчёркиванием у активной */

.sidebar-tab {
	position: relative;
	display: flex;
	align-items: center;
	padding: 0 0 14px 0;
	border: none;
	background-color: transparent;
	color: var(--mute);
	font-family: inherit;
	font-size: 12.5px;
	font-weight: 400;
	letter-spacing: -.005em;
	cursor: pointer;
	white-space: nowrap;
	transition: color .25s;
}

.sidebar-tab:hover {
	color: var(--bone);
}

/* Активная вкладка списка */

.sidebar-tab.active-sidebar-tab {
	color: var(--bone);
}

/* Оранжевое подчёркивание активной вкладки */

.sidebar-tab.active-sidebar-tab::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	border-radius: 2px;
	background-color: var(--ember);
	box-shadow: var(--seam);
}

/* Обертка кнопки сворачивания боковой панели */

.sidebar-collapse-wrapper {
	position: relative;
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Кнопка сворачивания сайдбара */

.sidebar-collapse-button {
	width: 32px;
	height: 32px;
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	border: 1px solid transparent;
	border-radius: var(--r-pill);
	background-color: transparent;
	color: var(--mute);
	cursor: pointer;
	transition: color .25s, background-color .25s, border-color .25s;
	padding: 0;
}

/* Наведение на кнопку сворачивания сайдбара */

.sidebar-collapse-button:hover {
	color: var(--bone);
	background-color: rgba(255, 236, 214, .08);
	border-color: var(--edge-soft);
}

/* Обертка кнопки: */

.new-session-wrapper {
	position: relative;
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Кнопка плюс: */

.new-session-button {
	flex: 0 0 auto;
}

/* Тултип кнопки: */

.new-session-tooltip {
	position: absolute;
	right: 0;
	top: calc(100% + 10px);
	padding: 8px 12px;
	border-radius: 12px;
	background-color: rgba(18, 14, 11, .94);
	border: 1px solid var(--edge);
	box-shadow: 0 16px 36px -8px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(255, 240, 222, .1);
	-webkit-backdrop-filter: blur(24px);
	backdrop-filter: blur(24px);
	color: var(--bone);
	font-size: 11.5px;
	line-height: 1.45;
	text-align: center;
	white-space: nowrap;
	pointer-events: none;
	opacity: 0;
	transform: translateY(-6px);
	transition: opacity .15s ease 0s, transform .15s ease 0s;
	z-index: 50;
}

/* Стрелка указателя: */

.new-session-tooltip::after {
	content: '';
	position: absolute;
	right: 12px;
	top: -5px;
	width: 8px;
	height: 8px;
	background-color: rgba(18, 14, 11, .94);
	border-left: 1px solid var(--edge);
	border-top: 1px solid var(--edge);
	transform: rotate(45deg);
}

/* Показ подсказки при наведении курсора: */

.new-session-wrapper:hover .new-session-tooltip {
	opacity: 1;
	transform: translateY(0);
	transition: opacity .25s ease 1s, transform .25s ease 1s;
}

/* Список чатов */

.conversation-list {
	flex: 1 1 0%;
	overflow-y: auto;
	padding: 12px 14px 8px 14px;
}

/* Плашка чата в списке: текст без иконок */

.conversation-item {
	position: relative;
	display: block;
	width: 100%;
	padding: 10px 12px;
	margin-bottom: 2px;
	border: none;
	border-radius: 16px;
	background-color: transparent;
	color: var(--taupe);
	font-family: inherit;
	font-size: 13.5px;
	font-weight: 400;
	text-align: left;
	cursor: pointer;
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 8px;
	transition: color .25s, background .25s;
}

.conversation-item:hover {
	color: var(--bone);
	background-color: rgba(255, 236, 214, .05);
}

/* Активный элемент чата в списке: */

.conversation-item.active-conversation {
	color: var(--bone);
	background-color: rgba(255, 236, 214, .09);
	font-weight: 400;
}

/* Черта активного чата в списке: */

.conversation-item.active-conversation::before {
	content: '';
	flex: 0 0 auto;
	width: 2.5px;
	height: 14px;
	border-radius: 2px;
	background-color: var(--ember);
	box-shadow: var(--seam);
	margin-right: -2px;
}

/* Имя чата в плашке: */

.conversation-item-title {
	flex: 1 1 0%;
	min-width: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Размер чата в списке: */

.conversation-item-size {
	flex: 0 0 auto;
	color: var(--mute);
	font-family: 'JetBrains Mono', ui-monospace, monospace;
	font-weight: 300;
	font-size: 11px;
	white-space: nowrap;
	margin-left: auto;
}

/* Иконка чата скрыта: в макете плашки без иконок */

.conversation-item-icon {
	display: none;
}

/* Кнопка меню чата: */

.conversation-menu-button {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	margin-left: 2px;
	padding: 0;
	border: none;
	border-radius: var(--r-pill);
	background-color: transparent;
	cursor: pointer;
	opacity: 1;
	transition: background-color .2s;
}

.conversation-menu-button:hover,
.conversation-menu-button.is-menu-open {
	background-color: rgba(242, 166, 90, .25);
}

/* Иконка кнопки меню: */

.conversation-menu-icon {
	width: 16px;
	height: 16px;
	display: block;
	opacity: .75;
	transition: opacity .2s;
}

.conversation-menu-button:hover .conversation-menu-icon,
.conversation-menu-button.is-menu-open .conversation-menu-icon {
	opacity: 1;
}



/* Черта чата с выполняющейся задачей: */

.conversation-item.has-active-task::before {
	content: '';
	flex: 0 0 auto;
	width: 2.5px;
	height: 14px;
	border-radius: 2px;
	background-color: var(--ember);
	box-shadow: 0 0 10px rgba(242, 166, 90, .7);
	margin-right: -2px;
	animation: busy-bar-pulse 1.3s ease-in-out infinite;
}

/* Пульсация черточки выполняющейся задачи: */

@keyframes busy-bar-pulse {

	0% {
		opacity: .35;
		transform: scaleY(0.85);
	}

	50% {
		opacity: 1;
		transform: scaleY(1.1);
		box-shadow: 0 0 12px var(--ember);
	}

	100% {
		opacity: .35;
		transform: scaleY(0.85);
	}

}

/* Плашка проекта: */

.project-filter-bar {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	width: 100%;
	margin: 0 0 8px 0;
	padding: 8px 10px 8px 12px;
	border: 1px solid var(--edge-soft);
	border-radius: 16px;
	background-color: var(--glass-1);
	box-sizing: border-box;
}

/* Имя проекта: */

.project-filter-name {
	flex: 1 1 0%;
	min-width: 0;
	font-size: 12.5px;
	font-weight: 400;
	color: var(--bone);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Сброс проекта: */

.project-filter-close {
	flex: 0 0 auto;
	padding: 2px;
}

.project-filter-close .header-icon {
	width: 14px;
	height: 14px;
}

/* Нижняя часть сайдбара */

.sidebar-bottom {
	flex: 0 0 auto;
	padding: 10px 10px 14px 10px;
	border-top: 1px solid var(--edge-soft);
}

/* Тёмная стеклянная карточка аккаунта и параметров сервера */

.sidebar-account-card {
	padding: 13px 14px;
	border-radius: var(--r-card);
	background-color: var(--glass-2);
	border: 1px solid var(--edge-soft);
	box-shadow: 0 10px 28px -10px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 240, 222, .08);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
}

/* Строка пользователя с аватаром и кнопкой выхода */

.account-user-row {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 10px;
}

/* Круглый аватар пользователя */

.account-avatar {
	width: 36px;
	height: 36px;
	flex: 0 0 36px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(158deg, rgba(255, 203, 142, .9), rgba(242, 166, 90, .75));
	color: #1B120A;
	font-size: 12.5px;
	font-weight: 400;
	letter-spacing: .02em;
	box-shadow: 0 6px 16px -6px rgba(242, 166, 90, .7);
}

/* Блок с именем и адресом хоста пользователя */

.account-user-info {
	flex: 1 1 0%;
	min-width: 0;
}

/* Имя пользователя */

.account-user-name {
	font-size: 13px;
	font-weight: 400;
	letter-spacing: -.01em;
	color: var(--bone);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	line-height: 1.25;
}

/* Адрес электронной почты под именем пользователя */

.account-user-email {
	font-size: 11.5px;
	color: var(--taupe);
	opacity: .75;
	margin-top: 1px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	line-height: 1.3;
}

/* Обертка кнопки настроек для позиционирования тултипа */

.account-settings-wrapper {
	position: relative;
	flex: 0 0 32px;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Кнопка настроек в строке пользователя */

.icon-only-button.account-settings-button {
	width: 32px;
	height: 32px;
	border-radius: var(--r-pill);
	border: 1px solid transparent;
	background: transparent;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background-color .25s, border-color .25s;
}

.icon-only-button.account-settings-button:hover {
	background-color: rgba(255, 236, 214, .08);
	border-color: var(--edge-soft);
}

.icon-only-button.account-settings-button .header-icon {
	width: 17px;
	height: 17px;
	opacity: .75;
	transition: opacity .25s;
}

.icon-only-button.account-settings-button:hover .header-icon {
	opacity: 1;
}

/* Кастомный стеклянный тултип кнопки настроек */

.account-settings-tooltip {
	position: absolute;
	left: 50%;
	bottom: calc(100% + 10px);
	width: 140px;
	padding: 8px 10px;
	border-radius: 12px;
	background-color: rgba(18, 14, 11, .94);
	border: 1px solid var(--edge);
	box-shadow: 0 16px 36px -8px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(255, 240, 222, .1);
	-webkit-backdrop-filter: blur(24px);
	backdrop-filter: blur(24px);
	color: var(--bone);
	font-size: 11.5px;
	line-height: 1.45;
	text-align: center;
	pointer-events: none;
	opacity: 0;
	transform: translate(-50%, 6px);
	transition: opacity .15s ease 0s, transform .15s ease 0s;
	z-index: 50;
}

/* Треугольный указатель тултипа настроек */

.account-settings-tooltip::after {
	content: '';
	position: absolute;
	left: 50%;
	bottom: -5px;
	width: 8px;
	height: 8px;
	background-color: rgba(18, 14, 11, .94);
	border-right: 1px solid var(--edge);
	border-bottom: 1px solid var(--edge);
	transform: translateX(-50%) rotate(45deg);
}

/* Отображение тултипа настроек при наведении */

.account-settings-wrapper:hover .account-settings-tooltip {
	opacity: 1;
	transform: translate(-50%, 0);
	transition: opacity .25s ease 1s, transform .25s ease 1s;
}

/* Обертка кнопки выхода для позиционирования тултипа */

.account-logout-wrapper {
	position: relative;
	flex: 0 0 32px;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Кнопка выхода в строке пользователя */

.icon-only-button.account-logout-button {
	width: 32px;
	height: 32px;
	border-radius: var(--r-pill);
	border: 1px solid transparent;
	background: transparent;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background-color .25s, border-color .25s;
}

.icon-only-button.account-logout-button:hover {
	background-color: rgba(255, 236, 214, .08);
	border-color: var(--edge-soft);
}

.icon-only-button.account-logout-button .header-icon {
	width: 17px;
	height: 17px;
	opacity: .75;
	transition: opacity .25s;
}

.icon-only-button.account-logout-button:hover .header-icon {
	opacity: 1;
}

/* Кастомный всплывающий стеклянный тултип при выходе */

.account-logout-tooltip {
	position: absolute;
	left: 50%;
	bottom: calc(100% + 10px);
	width: 220px;
	padding: 10px 12px;
	border-radius: 12px;
	background-color: rgba(18, 14, 11, .94);
	border: 1px solid var(--edge);
	box-shadow: 0 16px 36px -8px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(255, 240, 222, .1);
	-webkit-backdrop-filter: blur(24px);
	backdrop-filter: blur(24px);
	color: var(--bone);
	font-size: 11.5px;
	line-height: 1.45;
	text-align: center;
	pointer-events: none;
	opacity: 0;
	transform: translate(-50%, 6px);
	transition: opacity .15s ease 0s, transform .15s ease 0s;
	z-index: 50;
}

/* Треугольный указатель тултипа по центру */

.account-logout-tooltip::after {
	content: '';
	position: absolute;
	left: 50%;
	bottom: -5px;
	width: 8px;
	height: 8px;
	background-color: rgba(18, 14, 11, .94);
	border-right: 1px solid var(--edge);
	border-bottom: 1px solid var(--edge);
	transform: translateX(-50%) rotate(45deg);
}

/* Отображение тултипа при наведении с задержкой 1 секунда */

.account-logout-wrapper:hover .account-logout-tooltip {
	opacity: 1;
	transform: translate(-50%, 0);
	transition: opacity .25s ease 1s, transform .25s ease 1s;
}

/* Разделительная линия внутри тёмной карточки */

.account-divider {
	height: 1px;
	background-color: var(--edge-soft);
	margin: 11px 0 11px 0;
}

/* Блок параметров сервера */

.server-status {
	padding: 0;
}



/* Строка блока параметров сервера */

.server-status-row {
	margin-bottom: 9px;
}

/* Подпись метрики сервера */

.server-status-caption {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 5px;
}

/* Название метрики слева */

.server-status-name {
	flex: 1 1 0%;
	min-width: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	color: var(--taupe);
	font-size: 11.5px;
}

/* Значение метрики справа */

.server-status-value {
	flex: 0 0 auto;
	color: var(--bone);
	font-size: 11.5px;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
	line-height: 1.35;
}

/* Полоса загрузки ресурса */

.server-status-bar {
	display: block;
	width: 100%;
	height: 3px;
	border-radius: var(--r-pill);
	background-color: rgba(255, 236, 214, .1);
	overflow: hidden;
}

/* Заполнение полосы загрузки: тёплое свечение */

.server-status-fill {
	display: block;
	height: 100%;
	border-radius: var(--r-pill);
	background-color: var(--ember);
	box-shadow: 0 0 10px rgba(242, 166, 90, .6);
}

/* Полоса баланса ключа: правая часть зеленая */

.server-status-bar-balance {
	position: relative;
	background: linear-gradient(90deg, #27ae60, #2ecc71);
	box-shadow: 0 0 8px rgba(46, 204, 113, .35);
	overflow: hidden;
}

/* Световой луч сканирования при обновлении баланса */

.server-status-bar-balance::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, .95) 50%, transparent 100%);
	transform: translateX(-100%);
	opacity: 0;
	pointer-events: none;
}

/* Заполнение полосы баланса ключа: левая часть желтая */

.server-status-fill-balance {
	background: linear-gradient(90deg, #f2a65a, #f5b041);
	box-shadow: 0 0 10px rgba(245, 176, 65, .6);
	transition: width .4s ease;
}

/* Кликабельная строка баланса ключа */

.server-status-balance-row {
	cursor: pointer;
	user-select: none;
	transition: opacity .15s ease, transform .1s ease;
}

/* Левая подпись израсходованного баланса: обрезается троеточием при нехватке места */

.server-status-balance-row .server-status-name {
	flex: 1 1 0%;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Правая подпись доступного остатка: не сжимается */

.server-status-balance-row .server-status-value {
	flex: 0 0 auto;
	text-align: right;
	overflow: visible;
	text-overflow: clip;
}

/* Наведение курсора на строку баланса */

.server-status-balance-row:hover .server-status-name {
	color: var(--bone);
}

/* Нажатие на строку баланса */

.server-status-balance-row:active {
	transform: scale(0.985);
	opacity: .8;
}

/* Анимация пульсации текста при обновлении баланса */

@keyframes balanceTextPulseAnimation {
	0%, 100% {
		opacity: 1;
		filter: brightness(1);
	}
	50% {
		opacity: .45;
		filter: brightness(1.3);
	}
}

/* Анимация прохода светового луча по полоске */

@keyframes balanceBeamSweepAnimation {
	0% {
		transform: translateX(-100%);
	}
	100% {
		transform: translateX(100%);
	}
}

/* Анимация свечения желтой части баланса */

@keyframes balanceGlowPulseAnimation {
	0%, 100% {
		filter: brightness(1);
		box-shadow: 0 0 10px rgba(245, 176, 65, .6);
	}
	50% {
		filter: brightness(1.45);
		box-shadow: 0 0 18px rgba(245, 176, 65, .95);
	}
}

/* Состояние процесса обновления баланса */

.server-status-balance-row.is-updating {
	cursor: wait;
	pointer-events: none;
}

.server-status-balance-row.is-updating .server-status-caption {
	animation: balanceTextPulseAnimation .8s ease-in-out infinite;
}

.server-status-balance-row.is-updating .server-status-bar-balance::after {
	opacity: 1;
	animation: balanceBeamSweepAnimation .85s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.server-status-balance-row.is-updating .server-status-fill-balance {
	animation: balanceGlowPulseAnimation .85s ease-in-out infinite;
}

/* Примечание под полосой расхода лимита: */

.server-status-balance-note {
	margin-top: 8px;
	text-align: center;
	font-size: 11px;
	color: var(--taupe);
	opacity: .65;
	line-height: 1.4;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Пояснение под кнопкой: */

.account-engine-caption {
	margin-top: 8px;
	font-size: 11px;
	line-height: 1.35;
	color: var(--taupe);
	opacity: .55;
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}



/* Основная область чата: вторая карта */

.main-area {
	flex: 1 1 0%;
	display: flex;
	flex-direction: column;
	min-width: 0;
	border-radius: var(--r-shell);
	background-color: var(--glass-1);
	border: 1px solid var(--edge-soft);
	box-shadow: 0 34px 90px -34px rgba(0, 0, 0, .80), inset 0 1px 0 rgba(255, 240, 222, .11);
	-webkit-backdrop-filter: blur(34px) saturate(155%);
	backdrop-filter: blur(34px) saturate(155%);
	overflow: hidden;
}

/* Шапка чата с настройками */

.chat-header {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 12px;
	min-height: 72px;
	padding: 10px 20px 10px 26px;
	border-bottom: 1px solid var(--edge-soft);
	background-color: transparent;
}

/* Действия шапки: */

.chat-header-actions {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 10px;
	flex: 0 0 auto;
}

/* Обертка действий: */

.header-action-wrapper {
	position: relative;
	flex: 0 0 34px;
	display: none;
	align-items: center;
	justify-content: center;
}

/* Кнопка открытия боковой панели */

.sidebar-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 34px;
	width: 34px;
	height: 34px;
	padding: 0;
}

/* Иконка кнопки вызова сайдбара */

.sidebar-toggle .header-icon {
	margin: 0;
	flex-shrink: 0;
}

/* Тултип действия: */

.header-action-tooltip {
	position: absolute;
	top: calc(100% + 10px);
	padding: 8px 12px;
	border-radius: 12px;
	background-color: rgba(18, 14, 11, .94);
	border: 1px solid var(--edge);
	box-shadow: 0 16px 36px -8px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(255, 240, 222, .1);
	-webkit-backdrop-filter: blur(24px);
	backdrop-filter: blur(24px);
	color: var(--bone);
	font-size: 11.5px;
	line-height: 1.45;
	text-align: center;
	white-space: nowrap;
	pointer-events: none;
	opacity: 0;
	transform: translateY(-6px);
	transition: opacity .15s ease 0s, transform .15s ease 0s;
	z-index: 50;
}

/* Стрелка тултипа действия: */

.header-action-tooltip::after {
	content: '';
	position: absolute;
	top: -5px;
	width: 8px;
	height: 8px;
	background-color: rgba(18, 14, 11, .94);
	border-left: 1px solid var(--edge);
	border-top: 1px solid var(--edge);
	transform: rotate(45deg);
}

/* Тултип сайдбара: */

.sidebar-toggle-tooltip {
	left: 0;
}

/* Стрелка тултипа сайдбара: */

.sidebar-toggle-tooltip::after {
	left: 12px;
}

/* Показ подсказки при наведении на действие: */

.header-action-wrapper:hover .header-action-tooltip {
	opacity: 1;
	transform: translateY(0);
	transition: opacity .25s ease 1s, transform .25s ease 1s;
}

/* Оверлей экрана: */

.chat-screen-scrim {
	position: fixed;
	inset: 0;
	z-index: 25;
	background-color: rgba(10, 8, 6, .55);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	opacity: 0;
	pointer-events: none;
	transition: opacity .3s ease;
}

/* Активный оверлей экрана: */

.chat-screen-scrim.is-active {
	opacity: 1;
	pointer-events: auto;
}

/* Группа имени чата в шапке */

.chat-title-group {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 10px;
	flex: 1 1 0%;
	min-width: 0;
	overflow: hidden;
}

/* Название текущего чата */

.chat-title {
	font-size: 22px;
	font-weight: 200;
	letter-spacing: -.022em;
	color: var(--bone);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	min-width: 0;
	flex: 0 1 auto;
}

/* Кнопка переименования чата в шапке */

.rename-title-button {
	flex: 0 0 auto;
	opacity: .5;
}

.rename-title-button:hover {
	opacity: 1;
}

/* Оболочка: */

.select-shell {
	position: relative;
	display: block;
	max-width: 100%;
}

/* Селект модели: */

.model-select-shell {
	width: auto;
	flex: 0 0 auto;
}

/* Пилюля шапки: */

.chat-header-pill {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 9px;
	flex: 0 0 auto;
	padding: 9px 18px;
	border-radius: var(--r-pill);
	background-color: var(--glass-2);
	border: 1px solid var(--edge-soft);
	color: var(--bone);
	font-family: inherit;
	font-size: 12px;
	font-weight: 400;
	cursor: pointer;
	white-space: nowrap;
	outline: none;
	transition: border-color .25s, background-color .25s;
}

/* Пилюля при наведении: */

.chat-header-pill:hover {
	border-color: var(--edge);
	background-color: rgba(255, 236, 214, .06);
}

/* Активная пилюля с открытым меню: */

.chat-header-pill.active-menu-open {
	border-color: rgba(242, 166, 90, .45);
	background-color: rgba(242, 166, 90, .08);
}

/* Иконка слева: */

.pill-leading-icon {
	width: 15px;
	height: 15px;
	flex: 0 0 auto;
	opacity: .75;
	display: block;
}

/* Текст пилюли: */

.pill-label-text {
	flex: 0 1 auto;
	min-width: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	color: var(--bone);
}

/* Шеврон стрелки: */

.pill-chevron-icon {
	width: 11px;
	height: 11px;
	flex: 0 0 auto;
	margin-left: 2px;
	opacity: .6;
	display: block;
	transition: transform .25s, opacity .25s;
}

/* Подсветка стрелки при наведении: */

.chat-header-pill:hover .pill-chevron-icon {
	opacity: 1;
}

/* Поворот шеврона при открытом выпадающем меню: */

.chat-header-pill.active-menu-open .pill-chevron-icon {
	transform: rotate(180deg);
	opacity: 1;
}

/* Кнопка Nitro: */

.nitro-mode-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 9px 15px 9px 13px;
	border-radius: var(--r-pill);
	background-color: var(--glass-2);
	border: 1px solid var(--edge-soft);
	color: var(--mute);
	font-family: inherit;
	font-size: 12px;
	font-weight: 400;
	cursor: pointer;
	white-space: nowrap;
	outline: none;
	transition: border-color .25s, background-color .25s, color .25s, box-shadow .25s;
}

/* Наведение на Nitro: */

.nitro-mode-toggle:hover {
	border-color: var(--edge);
	background-color: rgba(255, 236, 214, .06);
	color: var(--bone);
}

/* Иконка кнопки: */

.nitro-leading-icon {
	width: 14px;
	height: 14px;
	flex: 0 0 auto;
	opacity: .75;
	display: block;
	transition: opacity .25s, filter .25s;
}

/* Иконка кнопки при наведении: */

.nitro-mode-toggle:hover .nitro-leading-icon {
	opacity: 1;
}

/* Активная кнопка Nitro: */

.nitro-mode-toggle.is-active {
	background-color: rgba(242, 166, 90, .14);
	border-color: rgba(242, 166, 90, .55);
	color: #F2A65A;
	box-shadow: 0 0 14px rgba(242, 166, 90, .20);
	font-weight: 500;
}

/* Иконка активной кнопки Nitro: */

.nitro-mode-toggle.is-active .nitro-leading-icon {
	opacity: 1;
	filter: drop-shadow(0 0 6px rgba(242, 166, 90, .7));
}

/* Активный Nitro при наведении: */

.nitro-mode-toggle.is-active:hover {
	background-color: rgba(242, 166, 90, .22);
	border-color: rgba(242, 166, 90, .75);
	color: #FFFFFF;
}

/* Текст Nitro: */

.nitro-pill-text {
	display: inline-block;
	letter-spacing: .02em;
}

/* Меню выбора модели */

.model-menu {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	z-index: 50;
	width: 560px;
	max-width: calc(100vw - 48px);
	padding: 8px;
	border-radius: var(--r-card);
	background-color: rgba(24, 19, 15, .94);
	border: 1px solid var(--edge);
	box-shadow: 0 44px 110px -30px rgba(0, 0, 0, .95);
	-webkit-backdrop-filter: blur(24px);
	backdrop-filter: blur(24px);
}

/* Строка поиска в меню моделей */

.model-menu-search-row {
	padding: 4px;
}

/* Поле поиска модели */

.model-search-input {
	display: block;
	width: 100%;
	padding: 11px 14px;
	border: 1px solid var(--edge-soft);
	border-radius: 14px;
	background-color: rgba(11, 9, 7, .5);
	color: var(--bone);
	font-family: inherit;
	font-size: 13px;
}

.model-search-input:focus {

	outline: none;
	border-color: rgba(242, 166, 90, .42);

}

/* Прокручиваемый список моделей */

.model-menu-list {
	max-height: min(420px, calc(100vh - 280px));
	overflow-y: auto;
	padding: 2px;
}

/* Карточка модели с двухколоночной структурой */

.model-menu-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	margin-bottom: 6px;
	padding: 10px 12px;
	border: 1px solid rgba(255, 236, 214, .1);
	border-radius: 14px;
	background-color: rgba(255, 236, 214, .02);
	color: var(--taupe);
	font-family: inherit;
	font-size: 13px;
	text-align: left;
	cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease;
}

/* Наведение на карточку модели */

.model-menu-item:hover {
	border-color: rgba(242, 166, 90, .35);
	background-color: rgba(255, 236, 214, .06);
}

/* Активная выбранная модель в списке */

.model-menu-item.selected-model-item {
	background-color: rgba(242, 166, 90, .12);
	border-color: rgba(242, 166, 90, .5);
	color: var(--bone);
}

/* Левая часть карточки: название и характеристики */

.model-menu-item-main {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

/* Название модели в карточке */

.model-menu-item-name {
	font-size: 13.5px;
	font-weight: 500;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	color: var(--bone);
}

/* Список строк характеристик модели */

.model-menu-item-details-list {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-top: 3px;
}

/* Строка характеристик карточки модели */

.model-menu-item-line {
	color: var(--taupe);
	font-family: 'JetBrains Mono', ui-monospace, monospace;
	font-weight: 300;
	font-size: 11px;
	line-height: 1.45;
	white-space: normal;
	word-break: break-word;
}

/* Выделение строк для активной модели */

.model-menu-item.selected-model-item .model-menu-item-line {
	color: rgba(242, 166, 90, .85);
}

/* Строка тарифа и цен модели */

.model-menu-item-line.model-menu-item-price {
	color: rgba(255, 236, 214, .6);
}

/* Строка тарифа для выбранной модели */

.model-menu-item.selected-model-item .model-menu-item-line.model-menu-item-price {
	color: rgba(242, 166, 90, .95);
}

/* Иконка направления токенов в тарифе модели */

.model-price-icon {
	display: inline-block;
	vertical-align: -2px;
	width: 12px;
	height: 12px;
	margin: 0 1px 0 2px;
}

/* Правая часть карточки: колонка радиокнопок размышлений */

.model-menu-item-reasoning {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 3px;
}

/* Радиокнопка выбора уровня размышлений в карточке */

.model-item-effort-radio-label {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	min-width: 174px;
	box-sizing: border-box;
	padding: 3px 7px;
	border: 1px solid transparent;
	border-radius: 6px;
	background-color: rgba(11, 9, 7, .35);
	color: var(--mute);
	font-size: 11px;
	cursor: pointer;
	user-select: none;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

/* Наведение на радиокнопку уровня размышлений */

.model-item-effort-radio-label:hover {
	border-color: rgba(242, 166, 90, .3);
	background-color: rgba(255, 236, 214, .08);
	color: var(--bone);
}

/* Выбранная радиокнопка уровня размышлений */

.model-item-effort-radio-label.active-item-effort-option {
	border-color: rgba(242, 166, 90, .45);
	background-color: rgba(242, 166, 90, .14);
	color: #ffffff;
}

/* Скрытый нативный radio input */

.model-item-effort-radio-input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	pointer-events: none;
}

/* Кастомный круглый индикатор радиокнопки */

.model-item-effort-radio-custom {
	position: relative;
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: 1px solid var(--mute);
	background-color: transparent;
	flex-shrink: 0;
	transition: border-color .15s ease, background-color .15s ease;
}

/* Активный индикатор радиокнопки */

.model-item-effort-radio-label.active-item-effort-option .model-item-effort-radio-custom {
	border-color: #f2a65a;
	background-color: #f2a65a;
	box-shadow: 0 0 6px rgba(242, 166, 90, .6);
}

/* Название уровня размышлений в плашке */

.model-item-effort-name {
	font-size: 11px;
	white-space: nowrap;
}

/* Статусная строка внутри меню моделей */

.model-menu-status {
	padding: 12px 10px;
	color: var(--mute);
	font-size: 13px;
}

.model-menu-status.model-menu-error {
	color: #E8A0A0;
}

/* Кнопка повторной загрузки списка моделей */

.model-retry-button {
	display: block;
	width: 100%;
	margin: 0 0 6px 0;
	padding: 11px 14px;
	border: 1px solid var(--edge);
	border-radius: 14px;
	background-color: transparent;
	color: var(--bone);
	font-family: inherit;
	font-size: 13px;
	cursor: pointer;
}

.model-retry-button:hover {
	background-color: rgba(255, 236, 214, .08);
}

/* Заголовок резервного списка моделей */

.model-menu-caption {
	padding: 8px 10px 4px 10px;
	color: var(--mute);
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: .06em;
}

/* Кнопка раскрытия полного списка моделей */

.model-menu-expand-button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	margin: 6px 0 2px 0;
	padding: 10px 14px;
	border: 1px dashed rgba(242, 166, 90, .35);
	border-radius: 12px;
	background-color: rgba(242, 166, 90, .05);
	color: var(--bone);
	font-family: inherit;
	font-size: 12px;
	cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

/* Наведение на кнопку раскрытия списка моделей */

.model-menu-expand-button:hover {
	border-color: rgba(242, 166, 90, .7);
	background-color: rgba(242, 166, 90, .14);
	color: #ffffff;
}

/* Контейнер ленты сообщений со скроллом */

.messages-container {
	flex: 1 1 0%;
	overflow-y: auto;
	padding: 30px;
}

/* Список сообщений: */

.messages-list {
	width: 100%;
	max-width: 100%;
	margin: 0;
}

/* Сообщение юзера: */

.user-message-bubble {
	width: 100%;
	max-width: 100%;
	margin: 8px 0 18px 0;
	padding: 16px 20px;
	border-radius: 20px;
	background-color: rgba(255, 238, 220, .1);
	border: 1px solid var(--edge);
	color: var(--bone);
	font-size: 15px;
	line-height: 1.6;
	font-weight: 350;
	letter-spacing: -.005em;
	white-space: normal;
	overflow-wrap: break-word;
	box-sizing: border-box;
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}

/* Бейдж глубокого исследования: */

.user-message-deep-research-badge {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin: 0 0 10px 0;
	padding: 3px 10px 3px 6px;
	background: rgba(217, 119, 6, .18);
	border: 1px solid rgba(245, 158, 11, .35);
	border-radius: 12px;
	font-size: 12px;
	font-weight: 450;
	color: #f59e0b;
}

/* Иконка плашки исследования: */

.deep-research-pill-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 1px 5px;
	background: #d97706;
	border-radius: 6px;
	font-size: 10px;
	font-weight: 700;
	color: #ffffff;
	letter-spacing: .5px;
}

/* Абзацы сообщения: */

.user-message-bubble p {
	margin: 0 0 8px 0;
}

.user-message-bubble p:last-child {
	margin-bottom: 0;
}

/* Код в сообщении: */

.user-message-bubble code {
	background-color: rgba(255, 236, 214, .12);
	border: 1px solid rgba(255, 236, 214, .2);
	border-radius: 8px;
	padding: 2px 7px;
	font-family: 'JetBrains Mono', ui-monospace, monospace;
	font-size: 12.5px;
	color: var(--bone);
}

/* Ответ ассистента: */

.assistant-block {
	clear: both;
	max-width: 100%;
	margin: 6px 0 22px 0;
	padding: 2px 0;
	font-size: 15px;
	line-height: 1.6;
	font-weight: 350;
	letter-spacing: -.005em;
	color: var(--bone);
	overflow-wrap: break-word;
}

/* Текст ассистента: */

.assistant-block p {
	margin: 0 0 12px 0;
}

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

/* Заголовки ассистента: */

.assistant-block h1, .assistant-block h2, .assistant-block h3, .assistant-block h4, .assistant-block h5, .assistant-block h6 {
	margin: 18px 0 10px 0;
	line-height: 1.3;
	font-weight: 400;
	color: var(--bone);
}

.assistant-block h1 {
	font-size: 20px;
	font-weight: 300;
}

.assistant-block h2 {
	font-size: 18px;
}

.assistant-block h3 {
	font-size: 16px;
}

.assistant-block h4 {
	font-size: 14.5px;
}

.assistant-block h5, .assistant-block h6 {
	font-size: 13.5px;
	color: var(--taupe);
}

.assistant-block > :first-child {
	margin-top: 0;
}

/* Списки внутри блока ассистента */

.assistant-block ul, .assistant-block ol, .user-message-bubble ul, .user-message-bubble ol {
	margin: 0 0 12px 0;
	padding-left: 24px;
	line-height: 1.6;
}

.assistant-block li, .user-message-bubble li {
	margin-bottom: 5px;
}

.assistant-block li:last-child, .user-message-bubble li:last-child {
	margin-bottom: 0;
}

/* Вложенные списки: */

.assistant-block ul ul, .assistant-block ol ol, .assistant-block ul ol, .assistant-block ol ul,
.user-message-bubble ul ul, .user-message-bubble ol ol {
	margin: 4px 0 6px 0;
	padding-left: 20px;
}

/* Чекбоксы задач: */

.assistant-block input[type="checkbox"], .user-message-bubble input[type="checkbox"] {
	margin: 0 8px 0 0;
	vertical-align: middle;
	accent-color: var(--ember);
	cursor: default;
}

/* Элементы задач: */

.assistant-block li:has(input[type="checkbox"]), .user-message-bubble li:has(input[type="checkbox"]),
.assistant-block .task-list-item, .user-message-bubble .task-list-item {
	list-style-type: none;
	margin-left: -20px;
}

/* Выделение текста: */

.assistant-block mark, .user-message-bubble mark {
	background-color: rgba(242, 166, 90, .28);
	color: var(--bone);
	padding: 1px 5px;
	border-radius: 4px;
}

/* Зачёркивание: */

.assistant-block del, .assistant-block s, .user-message-bubble del, .user-message-bubble s {
	color: var(--mute);
	text-decoration: line-through;
}

/* Жирный текст: */

.assistant-block strong, .assistant-block b, .user-message-bubble strong, .user-message-bubble b {
	font-weight: 600;
	color: var(--bone);
}

/* Курсивный текст: */

.assistant-block em, .assistant-block i, .user-message-bubble em, .user-message-bubble i {
	font-style: italic;
}

/* Картинки Markdown: */

.assistant-block img, .user-message-bubble img {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
	border: 1px solid var(--edge-soft);
	margin: 8px 0;
	display: block;
}

/* Раскрывающийся блок: */

.assistant-block details, .user-message-bubble details {
	margin: 12px 0;
	padding: 10px 16px;
	border-radius: 12px;
	border: 1px solid var(--edge);
	background-color: rgba(20, 16, 13, .6);
}

/* Заголовок блока: */

.assistant-block summary, .user-message-bubble summary {
	cursor: pointer;
	font-weight: 500;
	color: var(--bone);
	margin-bottom: 6px;
}

/* Разделитель внутри блока ассистента */

.assistant-block hr, .user-message-bubble hr {
	border: none;
	border-top: 1px solid var(--edge-soft);
	margin: 16px 0;
}

/* Ссылки внутри блока ассистента */

.assistant-block a, .user-message-bubble a {
	color: var(--ember);
	text-decoration: underline;
	text-underline-offset: 3px;
	transition: opacity .2s;
}

.assistant-block a:hover, .user-message-bubble a:hover {
	opacity: .85;
}

/* Цитата Markdown: */

.assistant-block blockquote, .user-message-bubble blockquote {
	margin: 14px 0;
	padding: 10px 18px;
	border-left: 3px solid var(--ember);
	border-radius: 0 14px 14px 0;
	background-color: rgba(242, 166, 90, .07);
	color: var(--taupe);
}

.assistant-block blockquote p, .user-message-bubble blockquote p {
	margin-bottom: 6px;
	color: var(--taupe);
}

.assistant-block blockquote p:last-child, .user-message-bubble blockquote p:last-child {
	margin-bottom: 0;
}

/* Обертка для таблицы: */

.markdown-table-wrapper {
	width: 100%;
	max-width: 100%;
	margin: 14px 0;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border-radius: 14px;
	border: 1px solid var(--edge);
	background-color: rgba(20, 16, 13, .65);
	box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .6);
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 236, 214, .18) transparent;
}

.markdown-table-wrapper:last-child {
	margin-bottom: 0;
}

.markdown-table-wrapper::-webkit-scrollbar {
	height: 6px;
}

.markdown-table-wrapper::-webkit-scrollbar-track {
	background: transparent;
}

.markdown-table-wrapper::-webkit-scrollbar-thumb {
	background-color: rgba(255, 236, 214, .18);
	border-radius: 4px;
}

.markdown-table-wrapper::-webkit-scrollbar-thumb:hover {
	background-color: rgba(242, 166, 90, .4);
}

/* Таблица данных: */

.markdown-table-wrapper .markdown-table,
.markdown-table-wrapper table {
	width: 100%;
	margin: 0;
	padding: 0;
	border: none;
	border-radius: 0;
	background: transparent;
	border-collapse: collapse;
	border-spacing: 0;
	font-size: 13.5px;
	line-height: 1.5;
	text-align: left;
	box-shadow: none;
}

/* Шапка таблицы: */

.markdown-table th {
	padding: 11px 16px;
	font-weight: 500;
	color: var(--bone);
	background-color: rgba(242, 166, 90, .14);
	border-bottom: 1px solid var(--edge);
	border-right: 1px solid rgba(255, 236, 214, .06);
	white-space: nowrap;
}

.markdown-table th:last-child {
	border-right: none;
}

/* Ячейки таблицы: */

.markdown-table td {
	padding: 10px 16px;
	color: var(--taupe);
	border-bottom: 1px solid rgba(255, 236, 214, .06);
	border-right: 1px solid rgba(255, 236, 214, .06);
	vertical-align: top;
}

.markdown-table td:last-child {
	border-right: none;
}

.markdown-table tr:last-child td {
	border-bottom: none;
}

.markdown-table tbody tr:nth-child(even) {
	background-color: rgba(255, 236, 214, .025);
}

.markdown-table tbody tr:hover {
	background-color: rgba(242, 166, 90, .07);
}

/* Резервные таблицы: */

.assistant-block > table, .user-message-bubble > table, .task-result-bar > table {
	width: 100%;
	max-width: 100%;
	border-collapse: collapse;
	border-spacing: 0;
	margin: 14px 0;
	border-radius: 14px;
	overflow: hidden;
	border: 1px solid var(--edge);
	background-color: rgba(20, 16, 13, .65);
	font-size: 13px;
	line-height: 1.5;
}

.assistant-block > table th, .user-message-bubble > table th, .task-result-bar > table th {
	padding: 11px 16px;
	font-weight: 500;
	color: var(--bone);
	background-color: rgba(242, 166, 90, .14);
	border-bottom: 1px solid var(--edge);
	border-right: 1px solid rgba(255, 236, 214, .06);
	white-space: nowrap;
}

.assistant-block table td, .user-message-bubble table td, .task-result-bar table td {
	padding: 10px 16px;
	color: var(--taupe);
	border-bottom: 1px solid rgba(255, 236, 214, .06);
	border-right: 1px solid rgba(255, 236, 214, .06);
}

/* Обертка блока кода: */

.code-block-wrapper {
	margin: 14px 0;
	border-radius: var(--r-code);
	background-color: var(--glass-3);
	border: 1px solid var(--edge-soft);
	overflow: hidden;
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
}

/* Шапка блока кода */

.code-block-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 7px 14px;
	background-color: rgba(255, 236, 214, .04);
	border-bottom: 1px solid rgba(255, 236, 214, .06);
	font-family: 'JetBrains Mono', monospace;
	font-size: 11px;
	color: var(--mute);
	letter-spacing: .06em;
}

.code-block-language {
	font-weight: 400;
}

/* Кнопка копии: */

.copy-code-button {
	padding: 3px 10px;
	border-radius: 8px;
	border: 1px solid rgba(255, 236, 214, .12);
	background-color: rgba(255, 236, 214, .06);
	color: var(--taupe);
	font-family: inherit;
	font-size: 11px;
	cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s;
}

.copy-code-button:hover {
	background-color: rgba(242, 166, 90, .18);
	border-color: rgba(242, 166, 90, .35);
	color: var(--bone);
}

.code-block-wrapper .code-block {
	margin: 0;
	border: none;
	border-radius: 0;
	background: transparent;
}

/* Блок кода внутри блока ассистента */

.code-block {
	margin: 4px 0 8px 0;
	padding: 14px 16px;
	border-radius: var(--r-code);
	background-color: var(--glass-3);
	border: 1px solid var(--edge-soft);
	color: rgba(255, 255, 255, .94);
	font-family: 'JetBrains Mono', ui-monospace, monospace;
	font-weight: 300;
	font-size: 12px;
	line-height: 1.75;
	overflow-x: auto;
	white-space: pre-wrap;
	overflow-wrap: break-word;
}

/* Подпись языка над блоком кода */

.code-language-caption {
	display: inline-block;
	margin-top: 10px;
	padding: 2px 10px;
	border-radius: var(--r-pill);
	background-color: rgba(255, 236, 214, .08);
	color: var(--taupe);
	font-family: 'JetBrains Mono', ui-monospace, monospace;
	font-size: 11px;
}

/* Инлайн-код внутри текста: оранжевая плашка */

.assistant-block code {
	background-color: rgba(242, 166, 90, .14);
	border: 1px solid rgba(242, 166, 90, .24);
	border-radius: 9px;
	padding: 2px 9px;
	font-family: 'JetBrains Mono', ui-monospace, monospace;
	font-weight: 400;
	font-size: 12.5px;
	color: var(--ember);
}

/* Инлайн-код внутри блока кода не подсвечивается повторно */

.code-block code, .code-block-wrapper code {
	background-color: transparent;
	border: none;
	padding: 0;
	font-size: inherit;
	color: inherit;
}

/* Блок размышления агента: пунктирная рамка */

.thinking-block {
	clear: both;
	max-width: 100%;
	width: fit-content;
	margin: 4px 0 20px 0;
	border-radius: var(--r-block);
	border: 1px dashed rgba(143, 163, 188, .28);
	color: var(--dusk);
	overflow: hidden;
}

/* Шапка сворачиваемого блока размышления */

.thinking-header {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 10px 18px;
	font-size: 12.5px;
	font-weight: 300;
	letter-spacing: .02em;
	color: var(--dusk);
	cursor: pointer;
	user-select: none;
}

/* Точка в шапке размышлений */

.thinking-header::before {
	content: '';
	width: 5px;
	height: 5px;
	flex: none;
	border-radius: 50%;
	background-color: var(--dusk);
	animation: think-dot-pulse 1.8s ease-in-out infinite;
}

/* Пульсация точки размышлений */

@keyframes think-dot-pulse {

	0%, 100% {
		opacity: .5;
	}

	50% {
		opacity: 1;
	}

}

/* Содержимое блока размышления */

.thinking-content {
	display: none;
	padding: 0 18px 12px 18px;
	font-size: 12.5px;
	line-height: 1.65;
	color: rgba(143, 163, 188, .85);
	white-space: pre-wrap;
	overflow-wrap: break-word;
}

/* Раскрытое содержимое размышления */

.thinking-block.open .thinking-content {
	display: block;
}

/* Карточка вызова инструмента */

.tool-use-card {
	clear: both;
	max-width: 100%;
	margin: 4px 0 20px 0;
	padding-left: 26px;
	border-left: 2px solid rgba(242, 166, 90, .5);
}

/* Шапка карточки инструмента */

.tool-use-header {
	padding: 4px 0;
	font-size: 12.5px;
	color: var(--taupe);
	cursor: pointer;
	user-select: none;
	overflow-wrap: break-word;
}

.tool-use-header strong {
	color: var(--bone);
	font-weight: 400;
}

/* Детали ввода инструмента */

.tool-use-details {
	display: none;
	padding: 2px 0 4px 0;
}

/* Раскрытые детали инструмента */

.tool-use-card.open .tool-use-details {
	display: block;
}

/* Результат инструмента внутри карточки */

.tool-result-box {
	margin-top: 8px;
	padding: 10px 14px;
	border-radius: 12px;
	background-color: rgba(11, 9, 7, .42);
	font-family: 'JetBrains Mono', ui-monospace, monospace;
	font-weight: 300;
	font-size: 12px;
	line-height: 1.7;
	color: rgba(255, 255, 255, .88);
	white-space: pre-wrap;
	overflow-wrap: break-word;
	max-height: 260px;
	overflow-y: auto;
}

/* Ошибочный результат инструмента */

.tool-result-box.error-result {
	background-color: rgba(90, 25, 20, .4);
	border-left-color: rgba(232, 160, 160, .6);
	color: #E8A0A0;
}

/* Преформатированный код внутри деталей инструмента */

.tool-input-pre {
	margin: 0;
	padding: 10px 14px;
	border-radius: 12px;
	background-color: rgba(11, 9, 7, .42);
	font-family: 'JetBrains Mono', ui-monospace, monospace;
	font-weight: 300;
	font-size: 12px;
	line-height: 1.7;
	color: rgba(255, 255, 255, .88);
	white-space: pre-wrap;
	overflow-wrap: break-word;
	max-height: 260px;
	overflow-y: auto;
}

/* Карточка запроса разрешения */

.permission-card {
	clear: both;
	max-width: 100%;
	margin: 6px 0 20px 0;
	padding: 16px 18px;
	border-radius: var(--r-card);
	background-color: var(--glass-2);
	border: 1px solid rgba(242, 166, 90, .3);
	-webkit-backdrop-filter: blur(20px);
	backdrop-filter: blur(20px);
}

/* Заголовок запроса разрешения */

.permission-title {
	font-weight: 400;
	font-size: 13.5px;
	color: var(--bone);
	margin-bottom: 8px;
}

/* Описание действия в запросе разрешения */

.permission-description {
	font-family: 'JetBrains Mono', ui-monospace, monospace;
	font-size: 12px;
	color: rgba(255, 255, 255, .88);
	white-space: pre-wrap;
	overflow-wrap: break-word;
	background-color: rgba(11, 9, 7, .42);
	border: 1px solid var(--edge-soft);
	border-radius: 12px;
	padding: 10px 14px;
	margin-bottom: 12px;
	max-height: 220px;
	overflow-y: auto;
}

/* Кнопки решения по разрешению */

.permission-actions {
	display: flex;
	flex-direction: row;
	gap: 10px;
	flex-wrap: wrap;
}

/* Итоговая плашка задачи */

.task-result-bar {
	clear: both;
	max-width: 100%;
	margin: 4px 0 22px 0;
	padding: 0;
	border: none;
	background-color: transparent;
	font-family: 'Inter', 'Segoe UI', sans-serif;
	font-weight: 400;
	font-size: 13.5px;
	line-height: 1.6;
	color: var(--bone);
}

/* Итоговая плашка с ошибкой */

.task-result-bar.error-bar {
	padding: 12px 16px;
	border-radius: var(--r-card);
	background-color: rgba(90, 25, 20, .4);
	border: 1px solid rgba(232, 160, 160, .3);
	color: #E8A0A0;
	font-family: 'Inter', 'Segoe UI', sans-serif;
	font-size: 13.5px;
}

/* Мелкая подпись стоимости и длительности в итоговой плашке: */

.result-meta {
	margin-top: 6px;
	font-family: 'JetBrains Mono', ui-monospace, monospace;
	font-weight: 300;
	font-size: 11.5px;
	color: var(--taupe);
}

/* Строка итоговой мета-информации с кнопкой копирования ответа: */

.result-meta-row {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	margin-top: 6px;
}

/* Блок метаданных расхода токенов и времени: */

.result-meta-info {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
	font-family: 'JetBrains Mono', ui-monospace, monospace;
	font-weight: 300;
	font-size: 11.5px;
	color: var(--taupe);
	margin-left: auto;
}

/* Кнопка копирования ответа ассистента: */

.copy-assistant-response-button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 26px;
	padding: 0 10px;
	background-color: rgba(255, 255, 255, 0.05);
	border: 1px solid var(--edge-soft);
	border-radius: 6px;
	color: #EDE6DD;
	font-family: 'JetBrains Mono', ui-monospace, monospace;
	font-size: 11.5px;
	font-weight: 400;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
	flex-shrink: 0;
}

/* Наведение на кнопку копирования ответа: */

.copy-assistant-response-button:hover {
	background-color: rgba(245, 176, 65, 0.12);
	border-color: rgba(245, 176, 65, 0.35);
	color: var(--amber);
	box-shadow: 0 0 10px rgba(245, 176, 65, 0.15);
}

/* Иконка в кнопке копирования ответа: */

.copy-assistant-response-icon {
	width: 13px;
	height: 13px;
	opacity: 0.8;
	transition: opacity 0.15s ease;
}

/* Наведение на иконку в кнопке копирования: */

.copy-assistant-response-button:hover .copy-assistant-response-icon {
	opacity: 1;
}

/* Состояние успешного копирования ответа: */

.copy-assistant-response-button.is-copied {
	background-color: rgba(74, 222, 128, 0.12);
	border-color: rgba(74, 222, 128, 0.35);
	color: #4ADE80;
	box-shadow: 0 0 10px rgba(74, 222, 128, 0.15);
}

/* Иконка при успешном копировании ответа: */

.copy-assistant-response-button.is-copied .copy-assistant-response-icon {
	opacity: 1;
}

/* Элемент метаданных: */

.task-result-meta-item {
	display: inline-flex;
	align-items: center;
	cursor: default;
}

/* Иконка расхода токенов в строке: */

.task-result-meta-item .model-price-icon {
	display: inline-block;
	vertical-align: -1px;
	width: 12px;
	height: 12px;
	margin: 0 2px 0 0;
}

/* Плашка живой активности выполняющего задачу агента: */

.agent-live-activity-banner {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 14px;
	width: 100%;
	padding: 12px 18px;
	background: var(--surface-translucent);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid var(--edge-soft);
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
	box-sizing: border-box;
	margin: 8px 0 16px 0;
	animation: agent-activity-fade-in 0.25s ease-out;
}

/* Анимация плавного появления плашки активности: */

@keyframes agent-activity-fade-in {

	from {
		opacity: 0;
		transform: translateY(6px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}

}

/* Вращающееся кольцо прелоадера активности: */

.agent-activity-spinner-ring {
	position: relative;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	border: 2.5px solid rgba(224, 138, 88, 0.15);
	border-top-color: var(--amber);
	border-right-color: var(--amber);
	animation: agent-activity-spin 0.9s cubic-bezier(0.4, 0, 0.2, 1) infinite;
	flex-shrink: 0;
}

/* Центральное пульсирующее ядро прелоадера: */

.agent-activity-spinner-core {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background-color: var(--amber);
	box-shadow: 0 0 10px var(--amber);
	animation: agent-activity-pulse 1.6s ease-in-out infinite;
}

/* Анимация вращения кольца прелоадера: */

@keyframes agent-activity-spin {

	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}

}

/* Анимация пульсации ядра прелоадера: */

@keyframes agent-activity-pulse {

	0%, 100% {
		transform: translate(-50%, -50%) scale(0.85);
		opacity: 0.6;
	}

	50% {
		transform: translate(-50%, -50%) scale(1.2);
		opacity: 1;
	}

}

/* Содержимое плашки активности агента: */

.agent-activity-content {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-grow: 1;
	min-width: 0;
}

/* Левая часть со статусом задачи и таймером: */

.agent-activity-timer-left {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 6px;
	font-family: 'JetBrains Mono', ui-monospace, monospace;
	font-size: 12px;
	color: #FFFFFF;
}

/* Подпись статуса задачи в работе: */

.agent-activity-timer-label {
	color: #C8C2B9;
	font-weight: 300;
}

/* Иконка часов после подписи задачи в работе: */

.agent-activity-timer-icon {
	width: 12px;
	height: 12px;
	vertical-align: -1px;
}

/* Значение таймера времени работы задачи: */

.agent-activity-timer-value {
	color: var(--amber);
	font-weight: 500;
}

/* Правая часть со счётчиком расхода токенов и ходов задачи: */

.agent-activity-tokens-right {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
	font-family: 'JetBrains Mono', ui-monospace, monospace;
	font-weight: 300;
	font-size: 11.5px;
	color: var(--taupe);
	margin-left: auto;
}

/* Область ввода: */

.composer-container {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 14px 26px 20px 26px;
	border-top: 1px solid var(--edge-soft);
	background-color: transparent;
	box-sizing: border-box;
}

/* Список чипов файлов: */

.attachment-chips-container {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0 4px;
	box-sizing: border-box;
}

/* Чип прикреплённого файла */

.attachment-chip {
	display: inline-flex;
	flex-direction: row;
	align-items: center;
	gap: 6px;
	padding: 5px 10px 5px 12px;
	border-radius: 16px;
	background-color: rgba(30, 24, 20, .85);
	border: 1px solid var(--edge-soft);
	color: var(--bone);
	font-size: 12.5px;
	line-height: 1.3;
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
	transition: border-color .2s;
}

.attachment-chip:hover {
	border-color: rgba(242, 166, 90, .42);
}

/* Иконка чипа прикреплённого файла */

.attachment-chip-icon {
	width: 14px;
	height: 14px;
	opacity: .85;
	flex-shrink: 0;
}

/* Имя файла в чипе */

.attachment-chip-name {
	max-width: 180px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-weight: 300;
}

/* Размер файла в чипе */

.attachment-chip-size {
	font-size: 11px;
	color: var(--taupe);
	flex-shrink: 0;
}

/* Кнопка удаления файла из списка прикреплённых */

.attachment-chip-remove {
	display: grid;
	place-items: center;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 0;
	background-color: rgba(255, 236, 214, .08);
	color: var(--taupe);
	cursor: pointer;
	padding: 0;
	margin-left: 2px;
	font-size: 12px;
	line-height: 1;
	transition: color .2s, background-color .2s;
}

.attachment-chip-remove:hover {
	color: #FF7B7B;
	background-color: rgba(255, 80, 80, .2);
}

/* Строка ввода сообщения композера */

.composer-bar {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 8px;
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 6px;
	border-radius: 30px;
	background-color: var(--glass-2);
	border: 1px solid var(--edge-soft);
	-webkit-backdrop-filter: blur(20px);
	backdrop-filter: blur(20px);
	transition: border-color .3s, box-shadow .3s;
	box-sizing: border-box;
}

.composer-bar:focus-within {
	border-color: rgba(242, 166, 90, .42);
	box-shadow: 0 0 24px -4px rgba(242, 166, 90, .2);
}

.composer-bar.drag-over {
	border-color: var(--ember);
	background-color: rgba(242, 166, 90, .12);
}

/* Поле ввода текста внутри полоски композера */

.composer-input {
	flex: 1 1 auto;
	min-width: 0;
	border: 0;
	background-color: transparent;
	outline: none;
	color: var(--bone);
	font-family: inherit;
	font-size: 14.5px;
	font-weight: 300;
	padding: 11px 8px;
	resize: none;
	min-height: 44px;
	height: 44px;
	max-height: 160px;
	overflow-y: auto;
	line-height: 22px;
	box-sizing: border-box;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

/* Скрытие полосы прокрутки WebKit в поле ввода */

.composer-input::-webkit-scrollbar {
	display: none;
	width: 0;
	height: 0;
}

.composer-input::placeholder {
	color: var(--mute);
}

/* Круглая кнопка внутри композера */

.round-composer-button {
	width: 44px;
	height: 44px;
	flex: 0 0 44px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	border: 1px solid var(--edge);
	background-color: transparent;
	color: var(--taupe);
	cursor: pointer;
	padding: 0;
	transition: color .25s, background-color .25s, border-color .25s, transform .15s;
}

.round-composer-button:hover {
	color: var(--bone);
	background-color: rgba(255, 236, 214, .08);
}

.round-composer-button:active {
	transform: scale(0.96);
}

/* Иконка внутри кнопки композера */

.composer-icon {
	width: 20px;
	height: 20px;
	pointer-events: none;
	display: block;
}

/* Кнопка прикрепления файлов при наличии вложений */

.attach-file-button.has-attachments {
	border-color: rgba(242, 166, 90, .5);
	background-color: rgba(242, 166, 90, .12);
}

/* Кнопка включения режима Deep Research в поле ввода */

.deep-research-toggle-button {
	width: 44px;
	height: 44px;
	flex: 0 0 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--r-pill);
	border: 1px solid var(--edge);
	background-color: rgba(255, 236, 214, .04);
	color: var(--bone);
	font-family: inherit;
	cursor: pointer;
	white-space: nowrap;
	outline: none;
	user-select: none;
	-webkit-user-select: none;
	padding: 0;
	box-sizing: border-box;
	overflow: hidden;
	transition: width .25s cubic-bezier(0.2, 0.8, 0.2, 1), flex-basis .25s cubic-bezier(0.2, 0.8, 0.2, 1), padding .25s cubic-bezier(0.2, 0.8, 0.2, 1), color .2s, background-color .2s, border-color .2s, box-shadow .2s;
}

/* Монограмма DR внутри кнопки Deep Research */

.deep-research-badge {
	display: inline-block;
	max-width: 30px;
	opacity: 1;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .02em;
	color: var(--bone);
	flex: 0 0 auto;
	line-height: 1;
	pointer-events: none;
	overflow: hidden;
	transition: max-width .22s ease, opacity .18s ease;
}

/* Текстовая подпись кнопки Deep Research */

.deep-research-label {
	display: inline-block;
	max-width: 0;
	opacity: 0;
	overflow: hidden;
	white-space: nowrap;
	font-size: 12.5px;
	font-weight: 500;
	color: var(--bone);
	pointer-events: none;
	margin-left: 0;
	line-height: 1;
	transition: max-width .25s cubic-bezier(0.2, 0.8, 0.2, 1), opacity .2s ease;
}

/* Наведение на кнопку Deep Research в поле ввода */

.deep-research-toggle-button:hover {
	width: 128px;
	flex: 0 0 128px;
	padding: 0 14px;
	justify-content: center;
	background-color: rgba(255, 236, 214, .09);
	border-color: rgba(242, 166, 90, .45);
	color: var(--bone);
}

.deep-research-toggle-button:hover .deep-research-badge {
	max-width: 0;
	opacity: 0;
}

.deep-research-toggle-button:hover .deep-research-label {
	max-width: 110px;
	opacity: 1;
}

/* Активное состояние кнопки Deep Research */

.deep-research-toggle-button.is-active {
	background-color: rgba(242, 166, 90, .18);
	border-color: rgba(242, 166, 90, .75);
	box-shadow: 0 0 16px -2px rgba(242, 166, 90, .45);
}

.deep-research-toggle-button.is-active .deep-research-badge {
	color: #FFDFBA;
}

.deep-research-toggle-button.is-active .deep-research-label {
	color: #FFDFBA;
}

.deep-research-toggle-button.is-active:hover {
	background-color: rgba(242, 166, 90, .24);
	border-color: rgba(242, 166, 90, .9);
	box-shadow: 0 0 20px -1px rgba(242, 166, 90, .55);
}

/* Обертка кнопки голосового ввода внутри композера */

.composer-voice-wrapper {
	position: relative;
	width: 44px;
	height: 44px;
	flex: 0 0 44px;
}

/* Кнопка голосового ввода в поле ввода */

.voice-mode-button {
	background-color: rgba(255, 236, 214, .05);
	border: 1px solid var(--edge);
	color: var(--bone);
}

.voice-mode-button:hover {
	background-color: rgba(255, 236, 214, .12);
	border-color: rgba(242, 166, 90, .45);
	color: #FFF;
}

.voice-mode-button.recording-voice-button {
	background-color: var(--cognac);
	border-color: var(--cognac);
	animation: pulse-voice 1.5s infinite;
}

/* Кнопка отправки сообщения: */

.round-composer-button.send-message-button {
	position: relative;
	border: 0;
	color: #1B120A;
	background: linear-gradient(158deg, #FFCB8E, var(--ember));
	box-shadow: 0 8px 22px -6px rgba(242, 166, 90, .65);
	transition: opacity .2s, transform .2s;
}

.round-composer-button.send-message-button:not(:disabled):hover {
	background: linear-gradient(158deg, #FFD8A8, #F5B06A);
}

.round-composer-button.send-message-button:disabled {
	opacity: .4;
	cursor: not-allowed;
	box-shadow: none;
}

/* Состояние запуска задачи на кнопке отправки: */

.round-composer-button.send-message-button.is-task-starting {
	opacity: 1 !important;
	cursor: wait !important;
	background: linear-gradient(158deg, #FFCB8E, var(--ember));
	box-shadow: 0 8px 22px -6px rgba(242, 166, 90, .65);
}

.round-composer-button.send-message-button.is-task-starting .composer-icon {
	opacity: .8;
}

.round-composer-button.send-message-button.is-task-starting::after {
	content: '';
	position: absolute;
	inset: -3px;
	border-radius: 50%;
	border: 2.5px solid rgba(242, 166, 90, .15);
	border-top-color: #FFCB8E;
	border-right-color: var(--ember);
	box-shadow: 0 0 12px rgba(242, 166, 90, .4);
	animation: composer-button-spin .8s linear infinite;
	pointer-events: none;
}

/* Анимация вращения спиннера на кнопке: */

@keyframes composer-button-spin {

	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}

}

/* Индикатор запуска задачи в ленте сообщений: */

.task-starting-banner {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 8px 16px;
	margin: 8px 0 16px 0;
	border-radius: 20px;
	background-color: rgba(255, 236, 214, .06);
	border: 1px solid rgba(242, 166, 90, .25);
	color: var(--taupe);
	font-size: 13.5px;
	font-weight: 300;
	letter-spacing: -.01em;
	animation: task-starting-fade-in .3s ease;
}

/* Спиннер индикатора запуска задачи: */

.task-starting-spinner {
	width: 14px;
	height: 14px;
	border: 2px solid rgba(242, 166, 90, .2);
	border-top-color: var(--ember);
	border-radius: 50%;
	animation: composer-button-spin .7s linear infinite;
}

/* Плавное появление индикатора запуска: */

@keyframes task-starting-fade-in {

	0% {
		opacity: 0;
		transform: translateY(4px);
	}

	100% {
		opacity: 1;
		transform: translateY(0);
	}

}

/* Кнопка остановки выполнения задачи: */

.round-composer-button.stop-task-button {
	border: 1px solid rgba(255, 90, 90, .4);
	background-color: rgba(180, 50, 40, .3);
	box-shadow: 0 8px 22px -6px rgba(180, 50, 40, .65);
}

.round-composer-button.stop-task-button:hover {
	background-color: rgba(220, 60, 50, .45);
}

/* Блок прикреплённых файлов внутри сообщения пользователя */

.user-message-attachments {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px solid rgba(255, 236, 214, .12);
}

/* Чип прикреплённого файла внутри сообщения пользователя */

.user-message-attachment-chip {
	display: inline-flex;
	flex-direction: row;
	align-items: center;
	gap: 5px;
	padding: 3px 8px;
	border-radius: 12px;
	background-color: rgba(255, 236, 214, .08);
	border: 1px solid rgba(255, 236, 214, .15);
	font-size: 12px;
	color: var(--bone);
}

.user-message-attachment-chip .attachment-icon {
	width: 13px;
	height: 13px;
	opacity: .8;
}

/* Диалог переименования и удаления сессии */

.session-dialog-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 150;
	display: flex;
	justify-content: center;
	align-items: flex-start;
	background-color: rgba(10, 8, 6, .55);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	padding: 32px 16px;
	box-sizing: border-box;
	overflow-y: auto;
	overflow-x: hidden;
}

/* Карточка диалога сессии */

.session-dialog {
	width: 100%;
	max-width: 440px;
	margin: auto;
	padding: 26px 24px;
	border-radius: var(--r-shell);
	background-color: rgba(30, 24, 20, .88);
	border: 1px solid var(--edge);
	box-shadow: 0 44px 110px -30px rgba(0, 0, 0, .95);
	-webkit-backdrop-filter: blur(24px);
	backdrop-filter: blur(24px);
}

/* Заголовок диалога: */

.session-dialog-title {
	font-size: 19px;
	font-weight: 300;
	letter-spacing: -.015em;
	color: var(--bone);
	margin-bottom: 12px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Ввод в диалоге: */

.session-dialog-input {
	display: block;
	width: 100%;
	padding: 13px 16px;
	border: 1px solid var(--edge-soft);
	border-radius: var(--r-card);
	background-color: rgba(11, 9, 7, .5);
	color: var(--bone);
	font-family: inherit;
	font-size: 14px;
}

.session-dialog-input:focus {

	outline: none;
	border-color: rgba(242, 166, 90, .42);

}

/* Селектор диалога: */

.session-custom-select {
	position: relative;
	width: 100%;
	margin-bottom: 14px;
}

/* Кнопка списка проекта: */

.session-custom-select-trigger {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 13px 16px;
	border: 1px solid var(--edge-soft);
	border-radius: var(--r-card);
	background-color: rgba(11, 9, 7, .5);
	color: var(--bone);
	font-family: inherit;
	font-size: 14px;
	text-align: left;
	cursor: pointer;
	transition: border-color .2s, background-color .2s;
}

.session-custom-select-trigger:focus,
.session-custom-select-trigger.is-active {
	outline: none;
	border-color: rgba(242, 166, 90, .42);
	background-color: rgba(18, 14, 11, .75);
}

/* Метка выбора проекта: */

.session-custom-select-label {
	flex: 1 1 auto;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Стрелка выбора проекта: */

.session-custom-select-arrow {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	opacity: .7;
	transition: transform .2s;
}

.session-custom-select-trigger.is-active .session-custom-select-arrow {
	transform: rotate(180deg);
}

/* Меню вариантов проекта: */

.session-custom-select-menu {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	max-height: 220px;
	overflow-y: auto;
	overflow-x: hidden;
	z-index: 10;
	border-radius: 16px;
	background-color: rgba(22, 17, 14, .96);
	border: 1px solid var(--edge);
	box-shadow: 0 20px 48px -12px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 240, 222, .08);
	-webkit-backdrop-filter: blur(24px);
	backdrop-filter: blur(24px);
	padding: 6px;
}

/* Список выбора проекта: */

.session-custom-select-list {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

/* Элемент выбора проекта: */

.session-custom-select-option {
	display: flex;
	flex-direction: row;
	align-items: center;
	width: 100%;
	padding: 9px 12px;
	border: none;
	border-radius: 10px;
	background-color: transparent;
	color: var(--bone);
	font-family: inherit;
	font-size: 13.5px;
	text-align: left;
	cursor: pointer;
	transition: background-color .15s, color .15s;
}

.session-custom-select-option:hover {
	background-color: rgba(255, 236, 214, .08);
	color: #ffffff;
}

.session-custom-select-option.is-selected {
	background-color: rgba(242, 166, 90, .2);
	color: #ffffff;
	font-weight: 400;
}

/* Разделитель в проектах: */

.session-custom-select-divider {
	height: 1px;
	margin: 4px 0;
	background-color: var(--edge-soft);
}

/* Пункт нового проекта в меню: */

.session-custom-select-option-new {
	color: var(--ember);
	font-weight: 400;
}

.session-custom-select-option-new:hover {
	background-color: rgba(242, 166, 90, .15);
	color: #ffffff;
}

/* Меню действий: */

.chat-context-menu {
	position: fixed;
	z-index: 120;
	width: 210px;
	padding: 6px;
	border-radius: 16px;
	background-color: rgba(20, 16, 13, .94);
	border: 1px solid var(--edge);
	box-shadow: 0 20px 48px -12px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(255, 240, 222, .1);
	-webkit-backdrop-filter: blur(24px);
	backdrop-filter: blur(24px);
	display: flex;
	flex-direction: column;
	gap: 2px;
}

/* Пункт меню: */

.chat-context-item {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 8px 10px;
	border: none;
	border-radius: 10px;
	background-color: transparent;
	color: var(--bone);
	font-family: inherit;
	font-size: 13px;
	font-weight: 400;
	text-align: left;
	cursor: pointer;
	transition: background-color .2s, color .2s;
}

.chat-context-item:hover {
	background-color: rgba(255, 236, 214, .08);
	color: #ffffff;
}


/* Иконка меню: */

.chat-context-icon {
	width: 16px;
	height: 16px;
	flex: 0 0 auto;
	opacity: .85;
}

/* Разделитель в меню: */

.chat-context-divider {
	height: 1px;
	margin: 3px 0;
	background-color: var(--edge-soft);
}

/* Описание подтверждения в диалоге */

.session-dialog-description {
	font-size: 13.5px;
	line-height: 1.55;
	color: var(--taupe);
	overflow-wrap: break-word;
	margin-bottom: 14px;
}

/* Группа кнопок диалога */

.session-dialog-buttons {
	display: flex;
	flex-direction: row;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 20px;
}

/* Блок поля в диалоге настроек */

.settings-field-block {
	margin-bottom: 14px;
}

/* Подпись поля в диалоге настроек */

.settings-field-label {
	display: block;
	font-size: 11.5px;
	color: var(--taupe);
	margin-bottom: 6px;
}

/* Поле многострочного ввода в диалоге настроек */

.settings-textarea {
	min-height: 72px;
	resize: vertical;
	font-family: inherit;
	line-height: 1.45;
}

/* Ссылки в диалоге настроек: */

.settings-link {
	color: var(--ember);
	text-decoration: underline;
	text-underline-offset: 3px;
	transition: color .2s ease;
}

.settings-link:hover {
	color: #FFD4A8;
}

/* Примечание в диалоге настроек */

.settings-dialog-note {
	margin-top: 8px;
	padding: 10px 13px;
	border-radius: 12px;
	background-color: rgba(242, 166, 90, .08);
	border: 1px solid rgba(242, 166, 90, .22);
	font-size: 12px;
	line-height: 1.5;
	color: var(--taupe);
}

/* Сообщение об ошибке в диалоге настроек: */

.settings-dialog-error {
	margin-top: 14px;
	margin-bottom: 14px;
	padding: 10px 14px;
	border-radius: 12px;
	background-color: rgba(90, 25, 20, .4);
	border: 1px solid rgba(232, 160, 160, .3);
	color: #FFB4B4;
	font-size: 12px;
	line-height: 1.45;
}

/* Базовое представление центральной области */

.central-view {
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
	flex-direction: column;
	position: relative;
}

/* Шапка центрального экрана */

.central-view-header {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 72px;
	padding: 10px 26px;
	border-bottom: 1px solid var(--edge-soft);
}

/* Группа заголовка центрального экрана */

.central-view-title-group {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	flex: 1 1 auto;
	overflow: hidden;
}

/* Заголовок центрального представления */

.central-view-title {
	font-size: 23px;
	font-weight: 200;
	letter-spacing: -.022em;
	color: var(--bone);
	margin: 0;
	line-height: 1.2;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	min-width: 0;
}

/* Группа кнопок действий в шапке центрального экрана */

.central-view-header-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 0 0 auto;
}

/* Кнопка-пилюля действий на центральном экране */

.central-view-action-pill {
	height: 38px;
	padding: 0 22px 0 16px;
	border-radius: var(--r-pill);
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 500;
	white-space: nowrap;
	flex-shrink: 0;
	cursor: pointer;
	color: var(--bone);
	background-color: rgba(255, 236, 214, .06);
	border: 1px solid var(--edge);
	transition: background-color .2s, border-color .2s, color .2s;
}

/* Наведение на кнопку действия центрального экрана */

.central-view-action-pill:hover {
	background-color: rgba(242, 166, 90, .16);
	border-color: rgba(242, 166, 90, .45);
	color: var(--ember);
}

/* Отключенная кнопка действия центрального экрана */

.central-view-action-pill:disabled {
	opacity: .5;
	cursor: not-allowed;
	pointer-events: none;
}

/* Иконка внутри кнопки действия центрального экрана */

.central-view-action-pill .pill-leading-icon {
	width: 16px;
	height: 16px;
	flex: 0 0 auto;
	display: block;
	stroke: currentColor;
	fill: none;
	transition: stroke .2s;
}

/* Прокручиваемая область списка центрального экрана */

.central-view-scroll {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	padding: 22px 26px;
}

/* Контейнер элементов центрального экрана */

.central-view-content {
	width: 100%;
	margin: 0;
}

/* Блок группы элементов по времени */

.central-group-section {
	margin-bottom: 24px;
}

/* Заголовок временной группы */

.central-group-title {
	display: block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .02em;
	color: var(--mute);
	text-transform: uppercase;
	margin: 0 0 10px;
}

/* Строка чата или проекта на холсте */

.central-chat-row,
.central-project-row {
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	text-align: left;
	padding: 13px 18px;
	margin-bottom: 8px;
	border: 1px solid var(--edge-soft);
	border-radius: 14px;
	background-color: rgba(255, 236, 214, .03);
	cursor: pointer;
	color: var(--taupe);
	font-family: inherit;
	font-size: 14.5px;
	font-weight: 400;
	transition: color .2s, background-color .2s, border-color .2s;
}

/* Наведение на строку чата или проекта */

.central-chat-row:hover,
.central-project-row:hover {
	color: var(--bone);
	background-color: rgba(255, 236, 214, .08);
	border-color: rgba(242, 166, 90, .35);
}

/* Иконка строки списка холста */

.central-row-icon {
	width: 20px;
	height: 20px;
	flex: 0 0 auto;
	color: var(--mute);
	display: grid;
	place-items: center;
}

/* Подсветка иконки строки при наведении */

.central-chat-row:hover .central-row-icon,
.central-project-row:hover .central-row-icon {
	color: var(--ember);
}

/* Заголовок строки на холсте */

.central-row-title {
	flex: 1 1 0%;
	min-width: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	color: inherit;
}

/* Метка проекта у строки чата */

.central-row-project-badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 6px;
	background-color: rgba(255, 236, 214, .08);
	font-size: 11px;
	color: var(--taupe);
	margin-left: 10px;
}

/* Мета-данные строки списка холста */

.central-row-meta {
	flex: 0 0 auto;
	font-family: 'JetBrains Mono', ui-monospace, monospace;
	font-weight: 300;
	font-size: 11.5px;
	color: var(--mute);
	white-space: nowrap;
}

/* Таблица файлов в центральном холсте */

.central-files-table {
	container-type: inline-size;
	width: 100%;
	margin: 0;
}

/* Шапка таблицы файлов центрального холста */

.central-files-table-header {
	display: none;
}

/* Строка таблицы файлов на холсте */

.central-file-row {
	display: flex;
	align-items: center;
	gap: 16px;
	width: 100%;
	text-align: left;
	padding: 12px 18px;
	margin-bottom: 6px;
	border: 1px solid var(--edge-soft);
	border-radius: 14px;
	background-color: rgba(255, 236, 214, .03);
	cursor: pointer;
	color: var(--taupe);
	font-family: inherit;
	font-size: 13.5px;
	font-weight: 400;
	transition: color .2s, background-color .2s, border-color .2s;
}

/* Наведение на строку файла */

.central-file-row:hover {
	color: var(--bone);
	background-color: rgba(255, 236, 214, .08);
	border-color: rgba(242, 166, 90, .35);
}

/* Ячейка с именем файла */

.central-file-name-cell {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	flex: 1 1 0;
}

/* Иконка элемента файловой таблицы */

.central-file-entry-icon {
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
	color: var(--mute);
}

/* Иконка папки в строке файлов */

.central-file-row.is-directory .central-file-entry-icon {
	color: var(--ember);
}

/* Текст имени файла в таблице */

.central-file-name-text {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Выделение имени папки в таблице */

.central-file-row.is-directory .central-file-name-text {
	color: var(--bone);
	font-weight: 500;
}

/* Раскрытая папка на центральном холсте */

.central-file-row.is-directory.is-expanded {
	background-color: rgba(242, 166, 90, .06);
	border-color: rgba(242, 166, 90, .3);
}

/* Статусная строка пустого или загружаемого каталога */

.central-file-status-card {
	padding: 12px 18px;
	margin-bottom: 6px;
	border: 1px dashed var(--edge-soft);
	border-radius: 14px;
	color: var(--mute);
	font-size: 13px;
	background-color: rgba(255, 236, 214, .015);
}

/* Первый уровень вложенности строк на холсте */

.central-file-depth-1 {
	padding-left: 42px;
}

/* Второй уровень вложенности строк на холсте */

.central-file-depth-2 {
	padding-left: 66px;
}

/* Третий уровень вложенности строк на холсте */

.central-file-depth-3 {
	padding-left: 90px;
}

/* Четвёртый уровень вложенности строк на холсте */

.central-file-depth-4 {
	padding-left: 114px;
}

/* Пятый уровень вложенности строк на холсте */

.central-file-depth-5 {
	padding-left: 138px;
}

/* Шестой уровень вложенности строк на холсте */

.central-file-depth-6 {
	padding-left: 162px;
}

/* Контейнер метаданных файла и папки */

.central-file-meta-container {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 24px;
	flex: 0 0 auto;
	margin-left: auto;
}

/* Ячейка размера файла */

.central-file-size-cell {
	font-family: 'JetBrains Mono', ui-monospace, monospace;
	font-weight: 300;
	font-size: 12px;
	color: var(--mute);
	white-space: nowrap;
	text-align: right;
	min-width: 70px;
}

/* Разделитель метаданных в мобильном виде */

.central-file-meta-separator {
	display: none;
}

/* Ячейка даты изменения файла */

.central-file-modified-cell {
	font-family: 'JetBrains Mono', ui-monospace, monospace;
	font-weight: 300;
	font-size: 12px;
	color: var(--mute);
	white-space: nowrap;
	text-align: right;
	min-width: 155px;
}

/* Ячейка действия скачивания */

.central-file-action-cell {
	flex: 0 0 32px;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Кнопка скачивания файла в таблице */

.central-file-download-button {
	width: 32px;
	height: 32px;
	display: grid;
	place-items: center;
	border: none;
	border-radius: 10px;
	background-color: transparent;
	color: var(--mute);
	cursor: pointer;
	opacity: 1;
	transition: color .2s, background-color .2s;
	padding: 0;
	text-decoration: none;
}

/* Наведение на кнопку скачивания строки */

.central-file-download-button:hover {
	color: var(--ember);
	background-color: rgba(242, 166, 90, .14);
}

/* Мобильный вид файловых плашек в узком контейнере */

@container (max-width: 620px) {

	.central-file-row {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-rows: auto auto;
		column-gap: 12px;
		row-gap: 6px;
		padding: 12px 14px;
	}

	.central-file-name-cell {
		grid-column: 1 / 2;
		grid-row: 1 / 2;
		flex: none;
	}

	.central-file-action-cell {
		grid-column: 2 / 3;
		grid-row: 1 / 3;
		align-self: center;
	}

	.central-file-meta-container {
		grid-column: 1 / 2;
		grid-row: 2 / 3;
		margin-left: 0;
		padding-left: 28px;
		justify-content: flex-start;
		gap: 6px;
	}

	.central-file-size-cell {
		min-width: 0;
		text-align: left;
		font-size: 11.5px;
	}

	.central-file-meta-separator {
		display: inline;
		color: var(--edge-strong);
		font-size: 12px;
	}

	.central-file-modified-cell {
		min-width: 0;
		text-align: left;
		font-size: 11.5px;
	}

	.central-file-status-card {
		padding: 10px 14px;
	}

	.central-file-depth-1 {
		padding-left: 34px;
	}

	.central-file-depth-2 {
		padding-left: 54px;
	}

	.central-file-depth-3 {
		padding-left: 74px;
	}

	.central-file-depth-4 {
		padding-left: 94px;
	}

	.central-file-depth-5 {
		padding-left: 114px;
	}

	.central-file-depth-6 {
		padding-left: 134px;
	}

}

/* Подвал файлового менеджера на холсте */

.central-files-footer {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 26px;
	border-top: 1px solid var(--edge-soft);
	font-size: 12px;
	color: var(--mute);
	flex: 0 0 auto;
}

/* Дерево файлов внутри левого сайдбара */

.sidebar-file-tree {
	flex: 1 1 0%;
	min-height: 0;
	overflow-y: auto;
	padding: 14px 18px 18px;
}

/* Дерево файлов с прокруткой */

.file-tree {
	flex: 1 1 0%;
	overflow-y: auto;
	padding: 10px 14px 14px 14px;
}

/* Строка: */

.file-tree-row {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 8px;
	width: 100%;
	padding: 8px 10px;
	margin-bottom: 2px;
	border: none;
	border-radius: 12px;
	background-color: transparent;
	color: var(--taupe);
	font-family: inherit;
	font-size: 13px;
	text-align: left;
	cursor: pointer;
	transition: color .2s, background .2s;
}

/* Ховер строки: */

.file-tree-row:hover {
	background-color: rgba(255, 236, 214, .06);
	color: var(--bone);
}

/* Шеврон папки: */

.file-tree-chevron {
	width: 13px;
	height: 13px;
	flex: 0 0 auto;
	opacity: .5;
	transition: transform .25s;
	margin-right: -2px;
}

/* Раскрытый шеврон каталога файлов: */

.file-tree-chevron.expanded-file-chevron {
	transform: rotate(90deg);
	opacity: .85;
}

/* Иконка элемента: */

.file-tree-entry-icon {
	width: 15px;
	height: 15px;
	flex: 0 0 auto;
	opacity: .65;
}

/* Имя записи: */

.file-tree-name {
	flex: 1 1 0%;
	min-width: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Размер записи в дереве: */

.file-tree-size {
	flex: 0 0 auto;
	color: var(--mute);
	font-family: 'JetBrains Mono', ui-monospace, monospace;
	font-weight: 300;
	font-size: 11px;
	white-space: nowrap;
	margin-left: auto;
}

/* Кнопка скачивания в дереве файлов: */

.file-tree-download-button {
	flex: 0 0 22px;
	width: 22px;
	height: 22px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: none;
	border-radius: 6px;
	background-color: transparent;
	color: var(--mute);
	cursor: pointer;
	padding: 0;
	text-decoration: none;
	transition: color .2s, background-color .2s;
	margin-left: 6px;
}

/* Наведение на кнопку скачивания в дереве: */

.file-tree-download-button:hover {
	color: var(--ember);
	background-color: rgba(242, 166, 90, .14);
}

/* Иконка внутри кнопки скачивания в дереве: */

.file-tree-download-button svg {
	pointer-events: none;
}

/* Иконка внутри центральной кнопки скачивания: */

.central-file-download-button svg {
	pointer-events: none;
}

/* Кнопка скачивания при формировании архива: */

.central-file-download-button.is-loading,
.file-tree-download-button.is-loading {
	pointer-events: none;
	opacity: .5;
}

/* Статус дерева: */

.file-tree-status {
	padding: 10px 8px;
	color: var(--mute);
	font-size: 12px;
}

/* Строка опции: */

.setting-toggle-row {
	position: relative;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

/* Текст для опции: */

.setting-toggle-label {
	font-size: 12px;
	font-weight: 400;
	color: var(--bone);
	line-height: 1.35;
	flex: 1 1 auto;
	user-select: none;
	cursor: pointer;
}

/* Разделитель опций: */

.setting-card-divider {
	height: 1px;
	background-color: var(--edge-soft);
	margin: 2px 0;
}

/* Ползунок: */

.toggle-switch {
	position: relative;
	display: inline-block;
	width: 38px;
	height: 22px;
	flex: 0 0 38px;
	cursor: pointer;
}

/* Чекбокс опции: */

.toggle-switch-input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	margin: 0;
}

/* Подложка ползунка: */

.toggle-switch-slider {
	position: absolute;
	inset: 0;
	background-color: rgba(255, 236, 214, .12);
	border: 1px solid var(--edge-soft);
	border-radius: var(--r-pill);
	transition: background-color .25s, border-color .25s;
}

/* Круглая ручка ползунка: */

.toggle-switch-slider::before {
	content: '';
	position: absolute;
	height: 16px;
	width: 16px;
	left: 2px;
	top: 2px;
	background-color: var(--bone);
	border-radius: 50%;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .4);
	transition: transform .25s cubic-bezier(.2, .9, .3, 1), background-color .25s;
}

/* Включение переключателя: */

.toggle-switch-input:checked + .toggle-switch-slider {
	background-color: rgba(242, 166, 90, .35);
	border-color: rgba(242, 166, 90, .6);
}

/* Смещение круглой ручки ползунка: */

.toggle-switch-input:checked + .toggle-switch-slider::before {
	transform: translateX(16px);
	background-color: #ffcb8e;
}

/* Тултип для опции: */

.setting-toggle-tooltip {
	position: absolute;
	left: 50%;
	bottom: calc(100% + 10px);
	width: 250px;
	padding: 10px 12px;
	border-radius: 12px;
	background-color: rgba(18, 14, 11, .94);
	border: 1px solid var(--edge);
	box-shadow: 0 16px 36px -8px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(255, 240, 222, .1);
	-webkit-backdrop-filter: blur(24px);
	backdrop-filter: blur(24px);
	color: var(--bone);
	font-size: 11.5px;
	line-height: 1.45;
	text-align: center;
	pointer-events: none;
	opacity: 0;
	transform: translate(-50%, 6px);
	transition: opacity .15s ease 0s, transform .15s ease 0s;
	z-index: 50;
}

/* Стрелка тултипа для опции: */

.setting-toggle-tooltip::after {
	content: '';
	position: absolute;
	left: 50%;
	bottom: -5px;
	width: 8px;
	height: 8px;
	background-color: rgba(18, 14, 11, .94);
	border-right: 1px solid var(--edge);
	border-bottom: 1px solid var(--edge);
	transform: translateX(-50%) rotate(45deg);
}

/* Показ подсказки при наведении на элемент: */

.setting-toggle-row:hover .setting-toggle-tooltip {
	opacity: 1;
	transform: translate(-50%, 0);
	transition: opacity .25s ease 1s, transform .25s ease 1s;
}

/* Плашка: */

.project-item {
	position: relative;
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 8px;
	width: 100%;
	padding: 10px 12px;
	margin-bottom: 2px;
	border: none;
	border-radius: 16px;
	background-color: transparent;
	color: var(--taupe);
	font-family: inherit;
	font-size: 13.5px;
	text-align: left;
	cursor: pointer;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	transition: color .25s, background .25s;
}

.project-item:hover {
	color: var(--bone);
	background-color: rgba(255, 236, 214, .05);
}

/* Иконка проекта: */

.project-item-icon {
	width: 15px;
	height: 15px;
	flex: 0 0 auto;
	opacity: .6;
}

/* Имя проекта: */

.project-item-name {
	flex: 1 1 0%;
	min-width: 0;
	font-weight: 400;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	vertical-align: middle;
}


/* Обертка кнопки голосового ввода */

.composer-voice-wrapper {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Кастомный всплывающий тултип кнопки голосового ввода */

.voice-button-tooltip {
	position: absolute;
	right: 0;
	bottom: calc(100% + 14px);
	width: 230px;
	padding: 10px 14px;
	border-radius: 12px;
	background-color: rgba(18, 14, 11, .94);
	border: 1px solid var(--edge);
	box-shadow: 0 16px 36px -8px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(255, 240, 222, .1);
	-webkit-backdrop-filter: blur(24px);
	backdrop-filter: blur(24px);
	color: var(--bone);
	font-size: 11.5px;
	line-height: 1.45;
	text-align: center;
	pointer-events: none;
	opacity: 0;
	transform: translateY(6px);
	transition: opacity .15s ease 0s, transform .15s ease 0s;
	z-index: 50;
}

/* Треугольный указатель тултипа в правом нижнем углу */

.voice-button-tooltip::after {
	content: '';
	position: absolute;
	right: 18px;
	bottom: -5px;
	width: 8px;
	height: 8px;
	background-color: rgba(18, 14, 11, .94);
	border-right: 1px solid var(--edge);
	border-bottom: 1px solid var(--edge);
	transform: rotate(45deg);
}

/* Отображение тултипа микрофона при наведении с задержкой 1 секунда */

.composer-voice-wrapper:hover .voice-button-tooltip {
	opacity: 1;
	transform: translateY(0);
	transition: opacity .25s ease 1s, transform .25s ease 1s;
}

/* Скрытие тултипа во время активной записи голоса */

.composer-voice-wrapper.is-recording .voice-button-tooltip,
.round-composer-button.recording-voice-button ~ .voice-button-tooltip {
	display: none;
	opacity: 0;
	pointer-events: none;
}

/* Статус: */

.voice-status {
	position: absolute;
	bottom: calc(100% + 10px);
	left: 50%;
	transform: translateX(-50%);
	max-width: 90%;
	width: -webkit-max-content;
	width: max-content;
	padding: 8px 18px;
	border-radius: var(--r-pill);
	background-color: rgba(24, 19, 15, .94);
	border: 1px solid var(--edge);
	box-shadow: 0 16px 36px -8px rgba(0, 0, 0, .85);
	-webkit-backdrop-filter: blur(24px);
	backdrop-filter: blur(24px);
	color: var(--bone);
	font-size: 12px;
	line-height: 1.45;
	text-align: center;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
	pointer-events: none;
	z-index: 60;
}

/* Ошибочный статус голосовых операций */

.voice-status.error-voice-status {
	background-color: rgba(90, 25, 20, .92);
	border-color: rgba(232, 160, 160, .3);
}

/* Кнопка микрофона во время записи */

.round-composer-button.recording-voice-button,
.round-icon-button.recording-voice-button {
	background-color: var(--cognac);
	animation: voice-recording-pulse 1.2s ease-in-out infinite;
}

/* Пульсация кнопки записи */

@keyframes voice-recording-pulse {

	0% {
		box-shadow: 0 0 0 0 rgba(242, 166, 90, .4);
	}

	70% {
		box-shadow: 0 0 0 12px rgba(242, 166, 90, 0);
	}

	100% {
		box-shadow: 0 0 0 0 rgba(242, 166, 90, 0);
	}

}

/* Тонкие полосы прокрутки */

::-webkit-scrollbar {
	width: 8px;
	height: 8px;
}

::-webkit-scrollbar-track {
	background-color: transparent;
}

::-webkit-scrollbar-thumb {
	background-color: rgba(255, 236, 214, .22);
	border-radius: var(--r-pill);
}

::-webkit-scrollbar-thumb:hover {
	background-color: rgba(255, 236, 214, .22);
}

/* Кнопки выбора моделей и Nitro в виде иконок при ширине 1111px и ниже */

@media (max-width: 1111px) {

	.chat-header-pill {
		width: 34px;
		height: 34px;
		padding: 0;
		display: inline-grid;
		place-items: center;
		justify-content: center;
		border-radius: var(--r-pill);
		background-color: transparent;
		border: none;
	}

	.chat-header-pill:hover,
	.chat-header-pill.active-menu-open {
		background-color: rgba(255, 236, 214, .1);
		border-color: transparent;
	}

	.chat-header-pill.nitro-mode-toggle {
		width: 34px;
		height: 34px;
		padding: 0;
		display: inline-grid;
		place-items: center;
		justify-content: center;
		background-color: transparent;
		border: none;
	}

	.chat-header-pill.nitro-mode-toggle:hover {
		background-color: rgba(255, 236, 214, .1);
		border-color: transparent;
	}

	.chat-header-pill.nitro-mode-toggle.is-active {
		background-color: rgba(242, 166, 90, .18);
		border: 1px solid rgba(242, 166, 90, .55);
		box-shadow: 0 0 10px rgba(242, 166, 90, .25);
	}

	.chat-header-pill.nitro-mode-toggle.is-active:hover {
		background-color: rgba(242, 166, 90, .28);
		border-color: rgba(242, 166, 90, .75);
	}

	.chat-header-pill .pill-leading-icon,
	.chat-header-pill .nitro-leading-icon {
		width: 20px;
		height: 20px;
		margin: 0;
		display: block;
		opacity: 1;
	}

	.chat-header-pill .pill-label-text,
	.chat-header-pill .pill-chevron-icon,
	.chat-header-pill .nitro-pill-text {
		display: none;
	}

	.central-view-action-pill {
		width: 34px;
		height: 34px;
		padding: 0;
		display: inline-grid;
		place-items: center;
		justify-content: center;
		border-radius: var(--r-pill);
		flex-shrink: 0;
	}

	.central-view-action-pill span {
		display: none;
	}

	.central-view-action-pill .pill-leading-icon {
		width: 18px;
		height: 18px;
		margin: 0;
	}

}

/* Планшетные экраны: */

@media (max-width: 900px) {

	.chat-screen {
		padding: 14px;
		gap: 12px;
	}

	.sidebar-mini-pane {
		display: none !important;
	}

	.sidebar-collapse-wrapper {
		display: none !important;
	}

	.sidebar-tab-open-button {
		opacity: 1 !important;
		transform: none !important;
		pointer-events: auto !important;
	}

	.mobile-view-sidebar-toggle {
		display: inline-flex !important;
		align-items: center;
		justify-content: center;
		width: 34px;
		height: 34px;
		padding: 0;
	}

	.sidebar-toggle-wrapper {
		display: flex;
	}

	.sidebar {
		position: fixed;
		top: 14px;
		left: 14px;
		bottom: 14px;
		z-index: 30;
		width: min(380px, calc(100vw - 56px));
		transform: translateX(calc(-100% - 30px));
		transition: transform .35s cubic-bezier(.22, .9, .28, 1);
		box-shadow: 0 40px 90px -18px rgba(0, 0, 0, .9);
	}

	.sidebar.open-sidebar {
		transform: translateX(0);
	}

	.messages-container {
		padding: 16px;
	}

	.chat-title {
		font-size: 18px;
	}

	.composer-container {
		padding: 10px 16px 18px 16px;
	}

}

/* Смартфоны и узкие экраны: */

@media (max-width: 768px) {

	.voice-button-tooltip {
		display: none !important;
	}

	.voice-status {
		width: calc(100% - 16px);
		max-width: 360px;
		white-space: normal;
		padding: 8px 14px;
		font-size: 11.5px;
		line-height: 1.4;
		border-radius: 16px;
	}

	.central-files-table-header {
		display: none;
	}

	.central-file-row {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-rows: auto auto;
		column-gap: 12px;
		row-gap: 6px;
		padding: 12px 14px;
	}

	.central-file-name-cell {
		grid-column: 1 / 2;
		grid-row: 1 / 2;
		flex: none;
	}

	.central-file-action-cell {
		grid-column: 2 / 3;
		grid-row: 1 / 3;
		align-self: center;
		margin-left: 0;
	}

	.central-file-meta-container {
		grid-column: 1 / 2;
		grid-row: 2 / 3;
		margin-left: 0;
		padding-left: 28px;
		justify-content: flex-start;
		gap: 6px;
	}

	.central-file-size-cell {
		min-width: 0;
		text-align: left;
		font-size: 11.5px;
	}

	.central-file-meta-separator {
		display: inline;
		color: var(--edge-strong);
		font-size: 12px;
	}

	.central-file-modified-cell {
		min-width: 0;
		text-align: left;
		font-size: 11.5px;
	}

	.central-file-status-card {
		padding: 10px 14px;
	}

	.central-file-depth-1 {
		padding-left: 34px;
	}

	.central-file-depth-2 {
		padding-left: 54px;
	}

	.central-file-depth-3 {
		padding-left: 74px;
	}

	.central-file-depth-4 {
		padding-left: 94px;
	}

	.central-file-depth-5 {
		padding-left: 114px;
	}

	.central-file-depth-6 {
		padding-left: 134px;
	}

}

/* Мобильные экраны: */

@media (max-width: 680px) {

	.chat-screen {
		padding: 8px;
		gap: 8px;
	}

	.chat-header {
		position: relative;
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: 8px;
		min-height: 52px;
		padding: 8px 12px;
	}

	.central-view-header {
		padding: 8px 14px;
		min-height: 52px;
		gap: 10px;
	}

	.central-view-title-group {
		flex: 1 1 auto;
		min-width: 0;
		overflow: hidden;
	}

	.central-view-title {
		font-size: 17px;
	}

	.central-view-action-pill {
		width: 32px;
		height: 32px;
		padding: 0;
	}

	.central-view-scroll {
		padding: 14px 14px;
	}

	.chat-title-group {
		gap: 6px;
	}

	.chat-title {
		font-size: 16px;
	}

	.chat-header-actions {
		gap: 6px;
	}

	.chat-header-pill {
		width: 34px;
		height: 34px;
		padding: 0;
		display: inline-grid;
		place-items: center;
		justify-content: center;
		border-radius: var(--r-pill);
		background-color: transparent;
		border: none;
	}

	.chat-header-pill:hover,
	.chat-header-pill.active-menu-open {
		background-color: rgba(255, 236, 214, .1);
		border-color: transparent;
	}

	.chat-header-pill.nitro-mode-toggle {
		width: 34px;
		height: 34px;
		padding: 0;
		display: inline-grid;
		place-items: center;
		justify-content: center;
		background-color: transparent;
		border: none;
	}

	.chat-header-pill.nitro-mode-toggle:hover {
		background-color: rgba(255, 236, 214, .1);
		border-color: transparent;
	}

	.chat-header-pill.nitro-mode-toggle.is-active {
		background-color: rgba(242, 166, 90, .18);
		border: 1px solid rgba(242, 166, 90, .55);
		box-shadow: 0 0 10px rgba(242, 166, 90, .25);
	}

	.chat-header-pill.nitro-mode-toggle.is-active:hover {
		background-color: rgba(242, 166, 90, .28);
		border-color: rgba(242, 166, 90, .75);
	}

	.chat-header-pill .pill-leading-icon,
	.chat-header-pill .nitro-leading-icon {
		width: 20px;
		height: 20px;
		margin: 0;
		display: block;
		opacity: 1;
	}

	.chat-header-pill .pill-label-text,
	.chat-header-pill .pill-chevron-icon,
	.chat-header-pill .nitro-pill-text {
		display: none;
	}

	.sidebar {
		top: 8px;
		left: 8px;
		bottom: 8px;
		width: min(380px, calc(100vw - 56px));
	}

	.composer-container {
		padding: 6px 6px 12px 6px;
	}

	.composer-bar {
		gap: 6px;
		padding: 5px;
	}

	.round-composer-button {
		width: 38px;
		height: 38px;
		flex: 0 0 38px;
	}

	.deep-research-toggle-button {
		width: 38px;
		height: 38px;
		flex: 0 0 38px;
		padding: 0;
		justify-content: center;
		border-radius: 50%;
	}

	.deep-research-toggle-button:hover {
		width: 38px;
		flex: 0 0 38px;
		padding: 0;
		justify-content: center;
	}

	.deep-research-toggle-button .deep-research-label {
		display: none !important;
	}

	.composer-voice-wrapper {
		width: 38px;
		height: 38px;
		flex: 0 0 38px;
	}

	.composer-icon {
		width: 18px;
		height: 18px;
	}

	.composer-input {
		font-size: 13.5px;
		line-height: 22px;
		padding: 8px 6px;
		min-height: 38px;
		height: 38px;
	}

	.user-message-bubble {
		width: 100%;
		max-width: 100%;
		margin: 8px 0 16px 0;
	}

	.assistant-block, .thinking-block, .tool-use-card, .permission-card, .task-result-bar {
		width: 100%;
		max-width: 100%;
	}

	.model-menu {
		position: fixed;
		top: 56px;
		left: 8px;
		right: 8px;
		width: auto;
		max-width: calc(100vw - 16px);
		z-index: 50;
	}

}

/* Сверхмалые экраны: */

@media (max-width: 420px) {

	.composer-container {
		padding: 4px 4px 10px 4px;
	}

	.composer-bar {
		gap: 4px;
		padding: 4px;
	}

	.round-composer-button {
		width: 36px;
		height: 36px;
		flex: 0 0 36px;
	}

	.deep-research-toggle-button {
		width: 36px;
		height: 36px;
		flex: 0 0 36px;
	}

	.deep-research-toggle-button:hover {
		width: 36px;
		flex: 0 0 36px;
	}

	.composer-voice-wrapper {
		width: 36px;
		height: 36px;
		flex: 0 0 36px;
	}

	.composer-icon {
		width: 17px;
		height: 17px;
	}

	.composer-input {
		font-size: 13px;
		line-height: 22px;
		padding: 7px 4px;
		min-height: 36px;
		height: 36px;
	}

}

/* Фокус кнопок: */

button:focus-visible {
	outline: 2px solid rgba(242, 166, 90, .55);
	outline-offset: 2px;
}

/* Скроллбары для браузеров: */

html, body, div, textarea {
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 236, 214, .22) transparent;
}

/* Отступ при наведении на проект: */

.project-item:hover .project-item-name {
	max-width: calc(100% - 96px);
}

/* Контейнер буклета возможностей нового чата */

.messages-empty {
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0;
	color: var(--bone);
	box-sizing: border-box;
	animation: fade-in-booklet .25s ease-out;
}

@keyframes fade-in-booklet {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Шапка буклета возможностей: */

.empty-booklet-header {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 18px;
}

/* Бейдж робота в шапке буклета: */

.empty-booklet-badge {
	width: 42px;
	height: 42px;
	border-radius: 12px;
	background: linear-gradient(135deg, rgba(242, 166, 90, .28) 0%, rgba(180, 89, 58, .36) 100%);
	border: 1px solid rgba(242, 166, 90, .45);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	box-shadow: 0 6px 18px rgba(242, 166, 90, .2);
}

/* Иконка робота в бейдже: */

.empty-booklet-badge-icon {
	width: 22px;
	height: 22px;
	filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .3));
}

/* Заголовок буклета: */

.empty-booklet-title {
	margin: 0 0 2px 0;
	font-size: 18px;
	font-weight: 600;
	color: var(--bone);
	letter-spacing: -.02em;
}

/* Подзаголовок буклета: */

.empty-booklet-subtitle {
	margin: 0;
	font-size: 13px;
	line-height: 1.4;
	color: var(--taupe);
	opacity: .88;
}

/* Сетка карточек возможностей: */

.empty-booklet-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
	margin-bottom: 0;
}

/* Карточка категории возможностей: */

.empty-booklet-card {
	background: rgba(255, 236, 214, .04);
	border: 1px solid rgba(255, 236, 214, .08);
	border-radius: var(--r-block);
	padding: 11px 14px;
	transition: background-color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
	box-sizing: border-box;
	cursor: pointer;
	user-select: none;
}

/* Наведение на карточку буклета: */

.empty-booklet-card:hover {
	background: rgba(255, 236, 214, .08);
	border-color: rgba(242, 166, 90, .42);
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, .28), 0 0 14px rgba(242, 166, 90, .10);
}

/* Нажатие на карточку буклета: */

.empty-booklet-card:active {
	transform: translateY(0);
	background: rgba(242, 166, 90, .12);
	border-color: rgba(242, 166, 90, .60);
}

/* Широкая карточка на всю строку: */

.empty-booklet-card-wide {
	grid-column: 1 / -1;
}

/* Заголовок карточки категории: */

.empty-booklet-card-head {
	display: flex;
	align-items: center;
	gap: 7px;
	margin-bottom: 6px;
}

/* Иконка карточки: */

.empty-booklet-card-icon {
	font-size: 15px;
	line-height: 1;
}

/* Название категории в карточке: */

.empty-booklet-card-title {
	font-size: 13.5px;
	font-weight: 600;
	color: var(--bone);
	flex-grow: 1;
}

/* Метка количества моделей: */

.empty-booklet-model-count {
	font-size: 11px;
	padding: 1px 7px;
	border-radius: 999px;
	background: rgba(242, 166, 90, .14);
	border: 1px solid rgba(242, 166, 90, .28);
	color: var(--ember);
	white-space: nowrap;
}

/* Описание карточки категории: */

.empty-booklet-card-desc {
	font-size: 12px;
	line-height: 1.45;
	color: var(--taupe);
	opacity: .85;
}

/* Буклет в одну колонку на экранах от 900px до 1080px: */

@media (min-width: 900px) and (max-width: 1080px) {

	.empty-booklet-grid {
		grid-template-columns: 1fr;
	}

}

/* Адаптивность буклета на узких экранах: */

@media (max-width: 768px) {

	.messages-empty {
		padding: 0;
		margin: 0;
	}

	.empty-booklet-grid {
		grid-template-columns: 1fr;
	}

	.empty-booklet-title {
		font-size: 17px;
	}

}

/* Орбы входа: */

.login-gate-orbs {
	position: absolute;
	inset: 0;
	z-index: 4;
	pointer-events: none;
}

/* Оверлей файлов: */

.page-drag-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background-color: rgba(14, 10, 8, .82);
	-webkit-backdrop-filter: blur(28px) saturate(140%);
	backdrop-filter: blur(28px) saturate(140%);
	pointer-events: auto;
	transition: opacity .2s ease;
}

/* Карточка: */

.page-drag-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	width: 100%;
	max-width: 580px;
	padding: 48px 32px;
	border-radius: 28px;
	border: 2px dashed rgba(242, 166, 90, .65);
	background-color: rgba(34, 27, 22, .55);
	box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .9), 0 0 50px -10px rgba(242, 166, 90, .2), inset 0 1px 0 rgba(255, 240, 222, .15);
	pointer-events: none;
	animation: page-drag-pulse 2s ease-in-out infinite;
}

/* Пульсация рамки оверлея: */

@keyframes page-drag-pulse {

	0%, 100% {
		border-color: rgba(242, 166, 90, .55);
		box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .9), 0 0 40px -10px rgba(242, 166, 90, .15), inset 0 1px 0 rgba(255, 240, 222, .15);
	}

	50% {
		border-color: rgba(242, 166, 90, .95);
		box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .9), 0 0 65px -5px rgba(242, 166, 90, .35), inset 0 1px 0 rgba(255, 240, 222, .25);
	}

}

/* Круглая подложка: */

.page-drag-icon-circle {
	width: 72px;
	height: 72px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background-color: rgba(242, 166, 90, .18);
	border: 1px solid rgba(242, 166, 90, .45);
	margin-bottom: 20px;
}

/* Иконка дропзоны: */

.page-drag-icon-image {
	width: 36px;
	height: 36px;
	opacity: .95;
}

/* Заголовок оверлея: */

.page-drag-title-text {
	font-size: 20px;
	font-weight: 300;
	color: var(--bone);
	letter-spacing: -.01em;
	margin-bottom: 0;
}

/* Оверлей дубликата вкладки: */

.duplicate-instance-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background-color: rgba(14, 12, 10, .88);
	backdrop-filter: blur(28px);
	-webkit-backdrop-filter: blur(28px);
	transition: opacity .3s ease;
}

/* Карточка дубликата вкладки: */

.duplicate-instance-card {
	position: relative;
	max-width: 480px;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 36px 32px 32px;
	border-radius: 12px;
	background-color: rgba(25, 22, 19, .92);
	border: 1px solid rgba(242, 166, 90, .35);
	box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .9), 0 0 50px -10px rgba(242, 166, 90, .2), inset 0 1px 0 rgba(255, 240, 222, .2);
}

/* Круглая подложка иконки: */

.duplicate-instance-icon-circle {
	width: 72px;
	height: 72px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background-color: rgba(243, 156, 18, .16);
	border: 1px solid rgba(243, 156, 18, .4);
	margin-bottom: 22px;
}

/* Иконка предупреждения: */

.duplicate-instance-icon-image {
	width: 36px;
	height: 36px;
}

/* Заголовок предупреждения: */

.duplicate-instance-title {
	font-size: 21px;
	font-weight: 300;
	color: var(--bone);
	letter-spacing: -.01em;
	margin-bottom: 12px;
}

/* Описание предупреждения: */

.duplicate-instance-description {
	font-size: 14px;
	font-weight: 300;
	color: var(--taupe);
	line-height: 1.55;
	margin-bottom: 28px;
}

/* Блок кнопок карточки: */

.duplicate-instance-actions {
	width: 100%;
	display: flex;
	justify-content: center;
}

/* Кнопка перезагрузки страницы: */

.duplicate-instance-actions .form-button-primary {
	width: 100%;
	padding: 12px 24px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 300;
	cursor: pointer;
}

/* Скрытие размышлений и метаданных: */

body.hide-agent-thinking .thinking-block,
body.hide-agent-thinking .tool-use-card,
body.hide-agent-thinking .result-meta-info,
body.hide-agent-thinking .agent-activity-tokens-right {
	display: none !important;
}

/* Карточка интерактивного опроса пользователя: */

.user-question-card {
	background: rgba(30, 26, 23, 0.75);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border: 1px solid rgba(212, 143, 90, 0.28);
	border-radius: 12px;
	padding: 20px;
	margin: 16px 0;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
	display: flex;
	flex-direction: column;
	gap: 16px;
}

/* Шапка карточки вопроса: */

.user-question-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

/* Бейдж темы вопроса: */

.user-question-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	font-size: 11px;
	font-weight: 500;
	font-family: 'JetBrains Mono', monospace;
	background: rgba(212, 143, 90, 0.16);
	color: var(--amber);
	border: 1px solid rgba(212, 143, 90, 0.30);
	border-radius: 6px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

/* Метка статуса ответа на вопрос: */

.user-question-status-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 400;
	color: var(--taupe);
}

/* Блок отдельного вопроса внутри карточки: */

.user-question-item {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding-bottom: 16px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Последний блок вопроса: */

.user-question-item:last-child {
	padding-bottom: 0;
	border-bottom: none;
}

/* Текст формулировки вопроса: */

.user-question-title {
	font-size: 15px;
	font-weight: 400;
	color: #f5f3ef;
	line-height: 1.45;
}

/* Подсказка для множественного выбора: */

.user-question-hint {
	font-size: 12px;
	color: var(--taupe);
	margin-top: -4px;
	margin-bottom: 2px;
}

/* Список вариантов ответа на вопрос: */

.user-question-options {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

/* Карточка варианта ответа: */

.user-question-option {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 12px 14px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.09);
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.18s ease;
	user-select: none;
}

/* Наведение на вариант ответа: */

.user-question-option:hover {
	background: rgba(212, 143, 90, 0.08);
	border-color: rgba(212, 143, 90, 0.35);
}

/* Выбранный вариант ответа: */

.user-question-option.is-selected {
	background: rgba(212, 143, 90, 0.15);
	border-color: var(--amber);
	box-shadow: 0 0 14px rgba(212, 143, 90, 0.22);
}

/* Круглый или квадратный индикатор выбора: */

.user-question-indicator {
	width: 18px;
	height: 18px;
	min-width: 18px;
	margin-top: 1px;
	border-radius: 50%;
	border: 1.5px solid rgba(255, 255, 255, 0.38);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.18s ease;
	background: transparent;
	box-sizing: border-box;
}

/* Квадратный индикатор для множественного выбора: */

.user-question-item[data-multi-select="true"] .user-question-indicator {
	border-radius: 4px;
}

/* Заполнение индикатора при выборе: */

.user-question-option.is-selected .user-question-indicator {
	border-color: var(--amber);
	background: var(--amber);
}

/* Точка внутри круглого индикатора: */

.user-question-option.is-selected .user-question-indicator::after {
	content: '';
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #1e1a17;
}

/* Маркер внутри квадратного индикатора: */

.user-question-item[data-multi-select="true"] .user-question-option.is-selected .user-question-indicator::after {
	border-radius: 1px;
	width: 6px;
	height: 6px;
}

/* Текстовая колонка варианта: */

.user-question-option-body {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

/* Название варианта ответа: */

.user-question-option-label {
	font-size: 14px;
	font-weight: 500;
	color: #ffffff;
	line-height: 1.35;
}

/* Пояснение к варианту ответа: */

.user-question-option-desc {
	font-size: 12px;
	color: rgba(255, 255, 255, 0.65);
	line-height: 1.45;
}

/* Поле для собственного текстового ответа: */

.user-question-custom-input {
	width: 100%;
	padding: 10px 14px;
	background: rgba(0, 0, 0, 0.28);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 8px;
	color: #ffffff;
	font-size: 13px;
	outline: none;
	transition: border-color 0.18s ease;
	box-sizing: border-box;
}

/* Фокус на поле собственного ответа: */

.user-question-custom-input:focus {
	border-color: var(--amber);
}

/* Блок кнопок отправки и пропуска: */

.user-question-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 4px;
}

/* Кнопка подтверждения ответа: */

.user-question-submit-button {
	padding: 10px 24px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 400;
	cursor: pointer;
}

/* Кнопка пропуска вопроса: */

.user-question-skip-button {
	padding: 10px 18px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 300;
	cursor: pointer;
	color: var(--taupe);
}

/* Карточка вопроса в отвеченном состоянии: */

.user-question-card.is-answered .user-question-option {
	cursor: default;
}

/* Невыбранные варианты в завершённой карточке: */

.user-question-card.is-answered .user-question-option:not(.is-selected) {
	opacity: 0.45;
}

/* Скрытие поля ввода в завершённой карточке: */

.user-question-card.is-answered .user-question-custom-input {
	display: none;
}

/* Скрытие кнопок в завершённой карточке: */

.user-question-card.is-answered .user-question-actions {
	display: none;
}

/* Кнопка коннекторов: */

.connectors-panel-button {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 16px;
	border-radius: var(--r-card);
	background: rgba(242, 166, 90, 0.08);
	border: 1px solid rgba(242, 166, 90, 0.22);
	color: #ffffff;
	font-size: 13px;
	font-weight: 400;
	cursor: pointer;
	transition: all 0.2s ease;
	box-shadow: 0 4px 16px -4px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 240, 222, 0.06);
	box-sizing: border-box;
}

/* Наведение на кнопку панели: */

.connectors-panel-button:hover {
	background: rgba(242, 166, 90, 0.16);
	border-color: rgba(242, 166, 90, 0.45);
	box-shadow: 0 0 16px rgba(242, 166, 90, 0.22), inset 0 1px 0 rgba(255, 240, 222, 0.10);
}

/* Иконка в кнопке: */

.connectors-panel-icon {
	width: 18px;
	height: 18px;
	opacity: 0.9;
}

/* Текст кнопки: */

.connectors-panel-text {
	flex: 1;
	text-align: left;
	color: #f5f3ef;
	font-size: 13px;
}

/* Бейдж количества: */

.connectors-panel-badge {
	font-size: 11px;
	padding: 2px 8px;
	border-radius: 6px;
	background: rgba(242, 166, 90, 0.18);
	border: 1px solid rgba(242, 166, 90, 0.35);
	color: var(--amber);
	font-family: 'JetBrains Mono', monospace;
	font-weight: 500;
}

/* Окно каталога: */

.connectors-dialog {
	max-width: 880px;
	width: 92vw;
	margin: auto;
	display: flex;
	flex-direction: column;
	background: rgba(24, 19, 16, 0.82);
	backdrop-filter: blur(28px) saturate(180%);
	-webkit-backdrop-filter: blur(28px) saturate(180%);
	border: 1px solid rgba(242, 166, 90, 0.25);
	border-radius: var(--r-shell);
	box-shadow: 0 30px 90px -20px rgba(0, 0, 0, 0.92), 0 0 50px -10px rgba(242, 166, 90, 0.14), inset 0 1px 0 rgba(255, 240, 222, 0.08);
	padding: 26px 28px;
	gap: 16px;
	box-sizing: border-box;
}

/* Шапка окна каталога: */

.connectors-dialog-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
}

/* Заголовок в шапке: */

.connectors-header-text {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

/* Заголовок модалки: */

.connectors-dialog-title {
	font-size: 20px;
	font-weight: 400;
	color: #ffffff;
	letter-spacing: -0.01em;
}

/* Подзаголовок модалки: */

.connectors-dialog-subtitle {
	font-size: 13px;
	color: var(--taupe);
	line-height: 1.45;
}

/* Закрытие модалки: */

.connectors-close-button {
	width: 34px;
	height: 34px;
	min-width: 34px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.12);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.18s ease;
}

/* Наведение на закрытие окна: */

.connectors-close-button:hover {
	background: rgba(255, 255, 255, 0.14);
	border-color: rgba(255, 255, 255, 0.25);
}

/* Баннер ключа Composio: */

.connectors-api-key-banner {
	background: rgba(242, 166, 90, 0.06);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border: 1px solid rgba(242, 166, 90, 0.22);
	border-radius: var(--r-card);
	padding: 16px 20px;
	box-shadow: inset 0 1px 0 rgba(255, 240, 222, 0.05);
}

/* Контент в баннере: */

.api-key-banner-content {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

/* Заголовок баннера: */

.api-key-banner-title {
	font-size: 14px;
	font-weight: 500;
	color: var(--amber);
}

/* Описание баннера: */

.api-key-banner-desc {
	font-size: 13px;
	color: var(--taupe);
	line-height: 1.45;
}

/* Ссылка в описании: */

.api-key-banner-desc a {
	color: var(--amber);
	text-decoration: underline;
}

/* Форма для ввода: */

.api-key-banner-form {
	display: flex;
	gap: 10px;
	align-items: center;
}

/* Поле ключа: */

.api-key-input {
	flex: 1;
	padding: 10px 16px;
	background: rgba(0, 0, 0, 0.35);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: var(--r-card);
	color: #ffffff;
	font-size: 13px;
}

/* Сохранение ключа: */

.api-key-save-button {
	padding: 10px 20px;
	font-size: 13px;
	border-radius: var(--r-card);
	white-space: nowrap;
}

/* Сообщение статуса: */

.api-key-status-message {
	font-size: 12px;
	color: #4ade80;
}

/* Панель управления: */

.connectors-controls-bar {
	display: flex;
	gap: 12px;
	align-items: center;
	margin: 0 0 14px 0;
}

/* Обёртка строки поиска: */

.connectors-search-wrapper {
	flex: 1;
	position: relative;
}

/* Поле поиска сервисов: */

.connectors-search-input {
	width: 100%;
	padding: 12px 20px;
	background: rgba(0, 0, 0, 0.32);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: var(--r-card);
	color: #ffffff;
	font-size: 13px;
	outline: none;
	transition: border-color 0.18s ease;
	box-sizing: border-box;
}

/* Активный фокус на поиске: */

.connectors-search-input:focus {
	border-color: var(--amber);
	box-shadow: 0 0 14px rgba(242, 166, 90, 0.2);
}

/* Область списка сервисов: */

.connectors-list-container {
	width: 100%;
	box-sizing: border-box;
}

/* Сетка плиток: */

.connectors-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	width: 100%;
	box-sizing: border-box;
}

/* Плитка: */

.connector-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 16px 18px;
	border-radius: var(--r-card);
	background: rgba(255, 255, 255, 0.03);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border: 1px solid rgba(255, 236, 214, 0.10);
	box-shadow: 0 6px 20px -6px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 240, 222, 0.05);
	transition: all 0.2s ease;
	box-sizing: border-box;
	min-width: 0;
}

/* Карточка с открытым выпадающим меню: */

.connector-card:has(.connector-accounts-dropdown),
.connector-card.has-open-dropdown {
	position: relative;
	z-index: 100;
}

/* Наведение на карту: */

.connector-card:hover {
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 236, 214, 0.22);
	box-shadow: 0 10px 28px -6px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 240, 222, 0.08);
}

/* Подключённая выключенная карточка: */

.connector-card.is-connected {
	border-color: rgba(242, 166, 90, 0.38);
	background: rgba(242, 166, 90, 0.06);
	box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.45), 0 0 20px rgba(242, 166, 90, 0.10), inset 0 1px 0 rgba(255, 240, 222, 0.08);
}

/* Наведение на выключенную карточку: */

.connector-card.is-connected:hover {
	border-color: rgba(242, 166, 90, 0.58);
	background: rgba(242, 166, 90, 0.10);
	box-shadow: 0 10px 28px -6px rgba(0, 0, 0, 0.55), 0 0 24px rgba(242, 166, 90, 0.16), inset 0 1px 0 rgba(255, 240, 222, 0.10);
}

/* Активная включённая карточка: */

.connector-card.is-enabled {
	border-color: rgba(74, 222, 128, 0.45);
	background: rgba(74, 222, 128, 0.07);
	box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.45), 0 0 22px rgba(74, 222, 128, 0.14), inset 0 1px 0 rgba(255, 240, 222, 0.08);
}

/* Наведение на активную карточку: */

.connector-card.is-enabled:hover {
	border-color: rgba(74, 222, 128, 0.70);
	background: rgba(74, 222, 128, 0.11);
	box-shadow: 0 10px 28px -6px rgba(0, 0, 0, 0.55), 0 0 28px rgba(74, 222, 128, 0.20), inset 0 1px 0 rgba(255, 240, 222, 0.10);
}

/* Включённый переключатель коннектора: */

.connector-card.is-enabled .toggle-switch-input:checked + .toggle-switch-slider {
	background-color: rgba(52, 199, 89, 0.35);
	border-color: rgba(52, 199, 89, 0.75);
}

/* Ручка включённого переключателя: */

.connector-card.is-enabled .toggle-switch-input:checked + .toggle-switch-slider::before {
	background-color: #4ade80;
	box-shadow: 0 0 10px rgba(74, 222, 128, 0.6);
}

/* Шапка в карточке: */

.connector-card-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

/* Идентичность сервиса: */

.connector-card-identity {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	flex: 1;
}

/* Иконка приложения: */

.connector-service-icon {
	width: 32px;
	height: 32px;
	min-width: 32px;
	flex: 0 0 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	font-weight: 600;
	color: #1a1a1a;
	background: #ffffff;
	border-radius: 6px;
	padding: 4px;
	box-sizing: border-box;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .18);
}

/* Логотип сервиса: */

.connector-brand-logo {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

/* Тексты карточки: */

.connector-card-meta {
	display: flex;
	flex-direction: column;
	min-width: 0;
	flex: 1;
}

/* Название сервиса: */

.connector-card-name {
	font-size: 14px;
	font-weight: 500;
	color: #ffffff;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Бейдж категории сервиса: */

.connector-card-badge {
	font-size: 11px;
	color: var(--taupe);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	display: block;
}

/* Описание возможностей: */

.connector-card-description {
	font-size: 12px;
	color: var(--taupe);
	line-height: 1.45;
	flex: 1;
	word-break: break-word;
}

/* Кнопка подключения коннектора: */

.connector-connect-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	padding: 0;
	margin: 0;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 50%;
	color: var(--taupe);
	cursor: pointer;
	outline: none;
	box-shadow: none;
	box-sizing: border-box;
	transition: background-color 0.18s ease, border-color 0.18s ease;
	flex-shrink: 0;
}

/* Наведение на кнопку подключения коннектора: */

.connector-connect-button:hover {
	background: rgba(242, 166, 90, 0.15);
	border-color: rgba(242, 166, 90, 0.45);
	box-shadow: none;
}

/* Наведение на иконку в кнопке подключения: */

.connector-connect-button:hover .connector-action-icon {
	opacity: 1;
	filter: brightness(0) saturate(100%) invert(73%) sepia(35%) saturate(1088%) hue-rotate(345deg) brightness(99%) contrast(93%);
}

/* Блок действий карточки коннектора: */

.connector-card-actions {
	position: relative;
	display: flex;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
}

/* Кнопка выпадающего меню аккаунтов коннектора: */

.connector-menu-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	padding: 0;
	margin: 0;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 50%;
	color: var(--taupe);
	cursor: pointer;
	outline: none;
	box-shadow: none;
	box-sizing: border-box;
	transition: background-color 0.18s ease, border-color 0.18s ease;
	flex-shrink: 0;
}

/* Наведение на кнопку меню аккаунтов: */

.connector-menu-button:hover {
	background: rgba(242, 166, 90, 0.15);
	border-color: rgba(242, 166, 90, 0.45);
	box-shadow: none;
}

/* Активная кнопка меню с открытым списком: */

.connector-menu-button.is-active {
	background: rgba(242, 166, 90, 0.18);
	border-color: rgba(242, 166, 90, 0.55);
	box-shadow: none;
}

/* Кнопка меню в процессе загрузки: */

.connector-menu-button.is-loading {
	pointer-events: none;
	background: rgba(255, 255, 255, 0.03);
	border-color: rgba(255, 255, 255, 0.08);
	box-shadow: none;
}

/* Спиннер загрузки в кнопке меню: */

.connector-button-spinner {
	width: 12px;
	height: 12px;
	border: 1.8px solid rgba(242, 166, 90, 0.25);
	border-top-color: #f2a65a;
	border-radius: 50%;
	animation: connector-button-spin 0.65s linear infinite;
	box-sizing: border-box;
}

/* Анимация вращения спиннера: */

@keyframes connector-button-spin {
	to {
		transform: rotate(360deg);
	}
}

/* Иконка в кнопке меню коннектора: */

.connector-action-icon {
	width: 13px;
	height: 13px;
	display: block;
	pointer-events: none;
	transition: filter 0.18s ease, opacity 0.18s ease;
	opacity: 0.85;
}

/* Наведение на иконку меню аккаунтов: */

.connector-menu-button:hover .connector-action-icon,
.connector-menu-button.is-active .connector-action-icon {
	opacity: 1;
	filter: brightness(0) saturate(100%) invert(73%) sepia(35%) saturate(1088%) hue-rotate(345deg) brightness(99%) contrast(93%);
}

/* Выпадающий список подключённых аккаунтов: */

.connector-accounts-dropdown {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	z-index: 200;
	width: 290px;
	max-width: 90vw;
	padding: 8px;
	border-radius: 12px;
	background: #14100c;
	border: 1px solid rgba(242, 166, 90, 0.40);
	box-shadow: 0 24px 60px -8px rgba(0, 0, 0, 0.98), 0 0 24px rgba(242, 166, 90, 0.16), inset 0 1px 0 rgba(255, 240, 222, 0.10);
	backdrop-filter: blur(24px);
	-webkit-backdrop-filter: blur(24px);
	display: flex;
	flex-direction: column;
	gap: 6px;
	box-sizing: border-box;
}

/* Заголовок выпадающего меню аккаунтов: */

.connector-accounts-dropdown-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 4px 6px 2px 6px;
	font-size: 11px;
	font-weight: 500;
	color: var(--mute);
	letter-spacing: 0.02em;
}

/* Контейнер списка аккаунтов: */

.connector-accounts-list {
	display: flex;
	flex-direction: column;
	gap: 4px;
	max-height: 190px;
	overflow-y: auto;
	box-sizing: border-box;
}

/* Строка подключённого аккаунта: */

.connector-account-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 7px 9px;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 236, 214, 0.06);
	transition: background 0.15s ease, border-color 0.15s ease;
	box-sizing: border-box;
}

/* Наведение на строку аккаунта: */

.connector-account-item:hover {
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 236, 214, 0.14);
}

/* Данные подключённого аккаунта: */

.connector-account-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	flex: 1;
}

/* Имя или идентификатор аккаунта: */

.connector-account-name {
	font-size: 12px;
	font-weight: 500;
	color: #f5f3ef;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Дата подключения аккаунта: */

.connector-account-date {
	font-size: 10.5px;
	color: var(--mute);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Кнопка удаления отдельного аккаунта: */

.connector-account-delete-button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	padding: 0;
	border-radius: 6px;
	background: transparent;
	border: 1px solid transparent;
	color: var(--mute);
	cursor: pointer;
	flex-shrink: 0;
	transition: all 0.15s ease;
}

/* Наведение на кнопку удаления аккаунта: */

.connector-account-delete-button:hover {
	background: rgba(239, 68, 68, 0.18);
	border-color: rgba(239, 68, 68, 0.55);
	color: #fca5a5;
	box-shadow: 0 0 8px rgba(239, 68, 68, 0.30);
}

/* Иконка корзины в кнопке удаления аккаунта: */

.connector-account-delete-icon {
	width: 14px;
	height: 14px;
	display: inline-block;
	pointer-events: none;
	background-color: currentColor;
	-webkit-mask: url(/images/icons/delete-white.svg) no-repeat center / contain;
	mask: url(/images/icons/delete-white.svg) no-repeat center / contain;
	transition: background-color 0.15s ease;
	flex-shrink: 0;
}

/* Кнопка добавления нового аккаунта: */

.connector-account-add-button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 100%;
	padding: 8px 10px;
	margin-top: 2px;
	border-radius: 8px;
	background: rgba(242, 166, 90, 0.12);
	border: 1px solid rgba(242, 166, 90, 0.35);
	color: #f2a65a;
	font-family: inherit;
	font-size: 12px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.18s ease;
	box-sizing: border-box;
}

/* Наведение на кнопку добавления аккаунта: */

.connector-account-add-button:hover {
	background: rgba(242, 166, 90, 0.22);
	border-color: rgba(242, 166, 90, 0.65);
	color: #ffffff;
	box-shadow: 0 0 12px rgba(242, 166, 90, 0.30);
}

/* Иконка плюса в кнопке добавления аккаунта: */

.connector-account-add-icon {
	width: 13px;
	height: 13px;
	display: inline-block;
	pointer-events: none;
	background-color: currentColor;
	-webkit-mask: url(/images/icons/add-white.svg) no-repeat center / contain;
	mask: url(/images/icons/add-white.svg) no-repeat center / contain;
	transition: background-color 0.18s ease;
	flex-shrink: 0;
}

/* Пустое состояние списка аккаунтов: */

.connector-accounts-empty {
	padding: 12px 6px;
	text-align: center;
	font-size: 11.5px;
	color: var(--mute);
}

/* Глобальный всплывающий тултип: */

.site-global-tooltip {
	position: absolute;
	padding: 6px 10px;
	border-radius: 8px;
	background-color: rgba(18, 14, 11, .95);
	border: 1px solid rgba(242, 166, 90, .28);
	box-shadow: 0 12px 28px -6px rgba(0, 0, 0, .85), 0 0 16px rgba(242, 166, 90, .10), inset 0 1px 0 rgba(255, 240, 222, .10);
	-webkit-backdrop-filter: blur(24px);
	backdrop-filter: blur(24px);
	color: #f5f3ef;
	font-size: 11.5px;
	line-height: 1.35;
	text-align: center;
	white-space: pre-line;
	pointer-events: none;
	opacity: 0;
	transform: translateY(4px);
	transition: opacity .18s ease, transform .18s ease;
	z-index: 100000;
}

/* Язычок тултипа: */

.site-global-tooltip::after {
	content: '';
	position: absolute;
	left: var(--tooltip-arrow-left, 50%);
	width: 8px;
	height: 8px;
	background-color: rgba(18, 14, 11, .95);
	border: 1px solid rgba(242, 166, 90, .28);
	transform: translateX(-50%) rotate(45deg);
	pointer-events: none;
}

/* Язычок при расположении тултипа сверху над элементом: */

.site-global-tooltip.tooltip-position-top::after {
	bottom: -5px;
	border-top: none;
	border-left: none;
}

/* Язычок при расположении тултипа снизу под элементом: */

.site-global-tooltip.tooltip-position-bottom::after {
	top: -5px;
	border-bottom: none;
	border-right: none;
}

/* Видимый всплывающий тултип: */

.site-global-tooltip.is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* Адаптивность для мобильных экранов: */

@media (max-width: 768px) {

	.connectors-dialog {
		padding: 18px;
		max-height: 94vh;
		width: 94vw;
		max-width: 94vw;
	}

	.connectors-grid {
		grid-template-columns: 1fr;
	}

}

/* Основной контейнер модального окна настроек: */

.modal {
	position: fixed;
	inset: 0;
	z-index: 2000;
	display: grid;
	place-items: center;
	padding: 24px;
	opacity: 0;
	pointer-events: none;
	transition: opacity .3s linear;
}

/* Открытое модальное окно настроек: */

.modal.is-open {
	opacity: 1;
	pointer-events: auto;
}

/* Затемняющий фоновый оверлей: */

.scrim {
	position: absolute;
	inset: 0;
	background: rgba(8, 6, 4, .52);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

/* Основная панель-карточка модального окна: */

.sheet {
	position: relative;
	display: flex;
	width: min(960px, 100%);
	height: min(640px, calc(100dvh - 48px));
	border-radius: var(--r-shell);
	background: rgba(30, 24, 20, .78);
	-webkit-backdrop-filter: blur(44px) saturate(160%);
	backdrop-filter: blur(44px) saturate(160%);
	border: 1px solid var(--edge);
	box-shadow: 0 44px 110px -40px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 240, 222, .13);
	overflow: hidden;
	transform: translateY(16px) scale(.98);
	transition: transform .42s ease;
}

/* Раскрытая панель модального окна: */

.modal.is-open .sheet {
	transform: none;
}

/* Боковая навигация вкладок в модальном окне: */

.sheet-nav {
	flex: 0 0 228px;
	width: 228px;
	display: flex;
	flex-direction: column;
	padding: 24px 10px 20px;
	border-right: 1px solid var(--edge-soft);
	background: rgba(11, 9, 7, .26);
}

/* Заголовок группы в навигации модального окна: */

.sheet-nav .eyebrow {
	padding: 0 12px;
	margin-top: 0;
	margin-bottom: 16px;
}

/* Верхняя надпись категории в модальном окне: */

.eyebrow {
	display: block;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--mute);
	margin-top: 24px;
	margin-bottom: 12px;
}

/* Первая надпись категории без верхнего отступа: */

.set-pane > .eyebrow:first-child {
	margin-top: 0;
}

/* Кнопка вкладки в меню настроек: */

.set-nav {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 10px 14px;
	border: 0;
	border-radius: 16px;
	background: transparent;
	cursor: pointer;
	color: var(--taupe);
	font-family: inherit;
	font-size: 13px;
	font-weight: 500;
	text-align: left;
	transition: color .25s, background-color .25s;
}

/* Отступ между кнопками вкладок: */

.set-nav + .set-nav {
	margin-top: 4px;
}

/* Наведение на кнопку вкладки: */

.set-nav:hover {
	color: var(--bone);
	background-color: rgba(255, 236, 214, .06);
}

/* Активная кнопка вкладки в настройках: */

.set-nav.is-on {
	color: var(--ember);
	background-color: rgba(242, 166, 90, .12);
}

/* Иконка внутри кнопки вкладки: */

.set-nav svg {
	flex: 0 0 16px;
	width: 16px;
	height: 16px;
}

/* Основная контентная область модального окна: */

.sheet-main {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

/* Шапка контентной области модального окна: */

.sheet-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 22px 28px 18px;
	border-bottom: 1px solid var(--edge-soft);
}

/* Заголовок текущего подраздела настроек: */

.sheet-title {
	font-size: 27px;
	font-weight: 200;
	letter-spacing: -.025em;
	margin: 0;
	color: var(--bone);
}

/* Кнопка закрытия модального окна настроек: */

.sheet-close-btn {
	width: 34px;
	height: 34px;
	border-radius: var(--r-pill);
	border: 1px solid transparent;
	background: transparent;
	color: var(--mute);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color .2s, background-color .2s, border-color .2s;
}

/* Наведение на кнопку закрытия окна: */

.sheet-close-btn:hover {
	color: var(--bone);
	background-color: rgba(255, 236, 214, .08);
	border-color: var(--edge-soft);
}

/* Тело контентной области с вертикальной прокруткой: */

.sheet-body {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	padding: 22px 28px 28px;
}

/* Панель одного подраздела настроек: */

.set-pane {
	display: block;
}

/* Скрытая панель подраздела настроек: */

.set-pane.is-hidden {
	display: none !important;
}

/* Секция размышлений в кастомизации: */

.settings-thinking-section.is-hidden {
	display: none !important;
}

/* Секретная буква в заголовке настроек: */

.secret-thinking-toggle-letter {
	cursor: pointer;
	user-select: none;
}

/* Секретная буква переключения настроек подключения: */

.secret-connection-toggle-letter {
	cursor: pointer;
	user-select: none;
}

/* Секция настроек связи: */

.settings-connection-section {
	margin-bottom: 12px;
}

/* Скрытие секции настроек подключения: */

.settings-connection-section.is-hidden {
	display: none !important;
}

/* Блок настроек сети: */

.settings-connection-box {
	margin-top: 0;
}

/* Список вариантов подключения: */

.connection-options-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* Карточка варианта подключения: */

.connection-option-card {
	border: 1px solid var(--edge-soft);
	border-radius: 12px;
	background: rgba(14, 11, 9, .52);
	transition: border-color .2s ease, background .2s ease;
	overflow: hidden;
}

/* Наведение на неактивную карточку варианта подключения: */

.connection-option-card:hover:not(.active) {
	border-color: var(--edge);
}

/* Активная карточка варианта подключения: */

.connection-option-card.active {
	border-color: rgba(255, 255, 255, .28);
	background: rgba(255, 255, 255, .04);
}

/* Шапка карточки варианта подключения: */

.connection-option-header-label {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 16px;
	cursor: pointer;
	user-select: none;
	margin: 0;
	transition: background-color .15s ease;
}

/* Наведение на кликабельную шапку варианта подключения: */

.connection-option-header-label:not(.connection-static-header):hover {
	background: rgba(255, 236, 214, .08);
}

/* Статичная шапка в карточке подключения: */

.connection-static-header {
	cursor: default;
}

/* Радиокнопка выбора варианта подключения: */

.connection-radio {
	margin-top: 3px;
	cursor: pointer;
	accent-color: #ffffff;
}

/* Метаданные варианта подключения: */

.connection-option-meta {
	display: flex;
	flex-direction: column;
	gap: 4px;
	flex: 1;
}

/* Строка заголовка варианта подключения: */

.connection-option-title-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

/* Название варианта подключения: */

.connection-option-title {
	font-size: 14px;
	font-weight: 500;
	color: #ffffff;
}

/* Бейдж активности варианта подключения: */

.connection-active-badge {
	display: inline-flex;
	align-items: center;
	padding: 2px 8px;
	font-size: 11px;
	font-weight: 500;
	color: #4ade80;
	background: rgba(74, 222, 128, .12);
	border: 1px solid rgba(74, 222, 128, .25);
	border-radius: 6px;
}

/* Скрытие бейджа активности варианта подключения: */

.connection-active-badge.is-hidden {
	display: none !important;
}

/* Описание варианта подключения: */

.connection-option-desc {
	font-size: 12px;
	color: rgba(255, 255, 255, .55);
	line-height: 1.4;
}

/* Детали и поля варианта подключения: */

.connection-option-details {
	padding: 14px 16px 16px 16px;
	border-top: 1px solid var(--edge-soft);
	display: flex;
	flex-direction: column;
	gap: 10px;
}

/* Ссылка в параметрах подключения: */

.connection-link {
	color: var(--ember);
	text-decoration: underline;
	text-underline-offset: 3px;
	transition: opacity .2s, color .2s;
}

/* Наведение на ссылку подключения: */

.connection-link:hover {
	opacity: .85;
	color: #ffd8a8;
}

/* Поле ввода параметров подключения: */

.connection-input-group {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

/* Метка поля параметров подключения: */

.connection-input-label {
	font-size: 12.5px;
	color: var(--taupe);
}

/* Поле ввода ключа подключения: */

.connection-key-input {
	width: 100%;
	padding: 9px 14px;
	border-radius: 12px;
	border: 1px solid var(--edge-soft);
	background: rgba(11, 9, 7, .34);
	color: var(--bone);
	font-family: inherit;
	font-size: 13px;
	outline: none;
	box-sizing: border-box;
	transition: border-color .25s;
}

/* Фокус поля ввода ключа подключения: */

.connection-key-input:focus {
	border-color: rgba(242, 166, 90, .45);
}

/* Подсказка поля параметров подключения: */

.connection-input-hint {
	font-size: 11.5px;
	color: rgba(255, 255, 255, .4);
	line-height: 1.3;
}

/* Скрытие деталей варианта подключения: */

.connection-option-details.is-hidden {
	display: none !important;
}

/* Универсальное скрытие элементов подключения: */

.is-hidden {
	display: none !important;
}

/* Строка действий с подключением: */

.connection-actions-row {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 10px;
}

/* Кнопка сохранения ключа шлюза: */

#settings-connection-save-key-button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

/* Иконка сохранения ключа: */

.settings-connection-save-icon {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
	display: block;
}

/* Текст обратной связи сохранения ключа: */

.connection-feedback-text {
	font-size: 12px;
	color: #4ade80;
}

/* Строка статуса подписки Claude: */

.claude-status-line {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}

/* Индикатор статуса Claude: */

.claude-status-indicator {
	display: flex;
	align-items: center;
	gap: 8px;
}

/* Лампочка индикатора статуса Claude: */

.claude-status-bulb {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	flex-shrink: 0;
}

/* Подключенный статус Claude: */

.claude-status-bulb.connected {
	background: #4ade80;
	box-shadow: 0 0 8px rgba(74, 222, 128, .6);
}

/* Отключенный статус Claude: */

.claude-status-bulb.disconnected {
	background: rgba(255, 255, 255, .3);
}

/* Процесс подключения статуса Claude: */

.claude-status-bulb.connecting {
	background: #fbbf24;
	box-shadow: 0 0 8px rgba(251, 191, 36, .6);
}

/* Подпись статуса Claude: */

.claude-status-caption {
	font-size: 13px;
	line-height: 16px;
	color: rgba(255, 255, 255, .8);
}

/* Кнопки управления подпиской Claude: */

.claude-status-buttons {
	display: flex;
	align-items: center;
	gap: 8px;
}

/* Кнопка отключения подписки Claude: */

.claude-disconnect-button {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	flex: 0 0 auto;
	height: 32px;
	padding: 0 14px;
	border-radius: var(--r-pill);
	border: 1px solid rgba(239, 68, 68, 0.3);
	background: rgba(239, 68, 68, 0.08);
	color: #f87171;
	font-family: inherit;
	font-size: 12px;
	font-weight: 500;
	cursor: pointer;
	white-space: nowrap;
	box-sizing: border-box;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

/* Наведение на кнопку отключения подписки: */

.claude-disconnect-button:hover {
	background: rgba(239, 68, 68, 0.16);
	border-color: rgba(239, 68, 68, 0.55);
	color: #fca5a5;
	box-shadow: 0 0 12px rgba(239, 68, 68, 0.25);
}

/* Нажатие на кнопку отключения подписки: */

.claude-disconnect-button:active {
	transform: scale(0.98);
}

/* Отключенное состояние кнопки отключения подписки: */

.claude-disconnect-button:disabled {
	opacity: 0.55;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

/* Иконка внутри кнопки отключения подписки: */

.claude-disconnect-icon {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
	display: block;
}

/* Блок инструкций OAuth Claude: */

.claude-oauth-instructions {
	margin-top: 14px;
	padding: 14px;
	background: rgba(0, 0, 0, .3);
	border: 1px solid rgba(255, 255, 255, .1);
	border-radius: 8px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

/* Скрытие блока инструкций OAuth Claude: */

.claude-oauth-instructions.is-hidden {
	display: none !important;
}

/* Шаг инструкции авторизации Claude: */

.claude-step-item {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 13px;
	color: #ffffff;
}

/* Номер шага инструкции авторизации Claude: */

.claude-step-number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .15);
	font-size: 11px;
	font-weight: 600;
	flex-shrink: 0;
}

/* Текст шага инструкции авторизации Claude: */

.claude-step-text {
	line-height: 1.4;
}

/* Кнопка перехода к авторизации Claude: */

.claude-oauth-open-button {
	display: inline-block;
	text-align: center;
	text-decoration: none;
	align-self: flex-start;
	padding: 8px 16px;
	margin-left: 28px;
}

/* Строка ввода кода подтверждения Claude: */

.claude-code-input-row {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-left: 28px;
}

/* Поле кода подтверждения Claude: */

.claude-code-input-row .connection-key-input {
	flex: 1;
	min-width: 0;
}

/* Ошибка авторизации Claude: */

.claude-oauth-error {
	font-size: 12px;
	color: #f87171;
	line-height: 1.4;
	margin-left: 28px;
}

/* Строка параметра в настройках: */

.rowline {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 16px;
	margin-bottom: 10px;
	border: 1px solid var(--edge-subtle);
	border-radius: var(--r-card);
	background: rgba(0, 0, 0, .22);
	font-size: 13px;
	color: var(--taupe);
	box-sizing: border-box;
	transition: border-color .2s ease, background .2s ease;
}

/* Наведение на строку параметра: */

.rowline:hover {
	border-color: var(--edge-soft);
	background: rgba(0, 0, 0, .28);
}

/* Текстовая колонка в строке параметра: */

.rowline-text-col {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

/* Пояснение к строке параметра в настройках: */

.rowline-sub {
	font-size: 11.5px;
	color: var(--mute);
	margin: 0;
	line-height: 1.45;
}

/* Жирный акцентный текст в строке параметра: */

.rowline b {
	font-weight: 500;
	color: var(--bone);
}

/* Превью аватара в модальном окне: */

.modal-avatar-preview {
	width: 32px;
	height: 32px;
	font-size: 11.5px;
	border-radius: var(--r-pill);
	background-color: rgba(242, 166, 90, .2);
	border: 1px solid rgba(242, 166, 90, .4);
	color: var(--bone);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 500;
}

/* Поле ввода в модальном окне настроек: */

.inp {
	width: 260px;
	padding: 9px 14px;
	border-radius: 14px;
	border: 1px solid var(--edge-soft);
	background: rgba(11, 9, 7, .34);
	color: var(--bone);
	font-family: inherit;
	font-size: 13px;
	font-weight: 400;
	outline: none;
	transition: border-color .25s;
}

/* Фокус поля ввода в модальном окне: */

.inp:focus {
	border-color: rgba(242, 166, 90, .45);
}

/* Полноразмерное поле ввода в модальном окне: */

.inp.inp-full {
	width: 100%;
}

/* Блок поля ввода в подразделе настроек: */

.settings-pane-block {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 14px 16px;
	margin-bottom: 10px;
	border: 1px solid var(--edge-subtle);
	border-radius: var(--r-card);
	background: rgba(0, 0, 0, .22);
	box-sizing: border-box;
	transition: border-color .2s ease, background .2s ease;
}

/* Наведение на блок поля ввода: */

.settings-pane-block:hover {
	border-color: var(--edge-soft);
	background: rgba(0, 0, 0, .28);
}

/* Подпись над полем ввода в подразделе: */

.settings-block-label {
	font-size: 12.5px;
	color: var(--taupe);
}

/* Стилизованное многострочное поле ввода: */

.settings-textarea-styled {
	width: 100%;
	min-height: 40px;
	height: 40px;
	padding: 10px 14px;
	border-radius: 14px;
	border: 1px solid var(--edge-soft);
	background: rgba(11, 9, 7, .34);
	color: var(--bone);
	font-family: inherit;
	font-size: 13px;
	font-weight: 400;
	line-height: 20px;
	outline: none;
	resize: none;
	overflow-y: hidden;
	box-sizing: border-box;
	transition: border-color .25s, height .15s ease;
}

/* Фокус стилизованного многострочного поля: */

.settings-textarea-styled:focus {
	border-color: rgba(242, 166, 90, .45);
}

/* Блок кнопок сохранения настроек профиля: */

.settings-pane-actions {
	display: flex;
	justify-content: flex-end;
	margin-top: 14px;
	margin-bottom: 0;
}

/* Сообщение об успешном сохранении настроек: */

.settings-dialog-success {
	margin-top: 14px;
	margin-bottom: 14px;
	padding: 10px 14px;
	border-radius: 12px;
	background-color: rgba(30, 80, 40, .4);
	border: 1px solid rgba(100, 220, 130, .35);
	color: #8DFFA8;
	font-size: 12px;
	line-height: 1.45;
}

/* Разделительная линия между блоками настроек: */

.sheet-sep {
	height: 1px;
	background: var(--edge-soft);
	margin: 28px 0 20px;
}

/* Блок отображения лимитов в кредитах: */

.usage-limits-box {
	margin: 0 0 10px;
	padding: 16px;
	border: 1px solid var(--edge-subtle);
	border-radius: var(--r-card);
	background: rgba(0, 0, 0, .22);
	box-sizing: border-box;
	transition: border-color .2s ease, background .2s ease;
}

/* Наведение на блок отображения лимитов: */

.usage-limits-box:hover {
	border-color: var(--edge-soft);
	background: rgba(0, 0, 0, .28);
}

/* Шапка блока лимитов с заголовком и кнопкой обновления: */

.usage-limits-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
}

/* Название блока баланса для языковых моделей: */

.usage-limits-title {
	font-size: 14px;
	font-weight: 500;
	color: var(--fg);
	user-select: none;
}

/* Кнопка обновления баланса в блоке лимитов: */

.usage-refresh-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	margin: 0;
	background: transparent;
	border: 1px solid var(--edge-subtle);
	border-radius: 8px;
	cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease, opacity .15s ease;
}

/* Наведение на кнопку обновления баланса: */

.usage-refresh-button:hover {
	background: rgba(255, 255, 255, .08);
	border-color: var(--edge-soft);
}

/* Нажатие на кнопку обновления баланса: */

.usage-refresh-button:active {
	background: rgba(255, 255, 255, .14);
}

/* Состояние активного обновления баланса: */

.usage-refresh-button.is-updating {
	cursor: default;
	pointer-events: none;
	opacity: .7;
}

/* Иконка кнопки обновления баланса: */

.usage-refresh-icon {
	width: 16px;
	height: 16px;
	display: block;
	transform-origin: 50% 50%;
	opacity: .75;
	transition: opacity .15s ease;
}

/* Наведение курсора на иконку обновления: */

.usage-refresh-button:hover .usage-refresh-icon {
	opacity: 1;
}

/* Анимация вращения иконки при обновлении баланса: */

@keyframes usageRefreshSpinAnimation {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}

/* Вращение иконки при активном обновлении баланса: */

.usage-refresh-button.is-updating .usage-refresh-icon {
	animation: usageRefreshSpinAnimation .8s linear infinite;
	will-change: transform;
	opacity: 1;
}

/* Трек прогресс-бара лимитов с зелёным фоном доступного остатка: */

.track.usage-limits-track {
	height: 8px;
	background: #52B788;
	border: 1px solid #40916C;
	overflow: hidden;
	transition: opacity .2s ease;
}

/* Трек прогресс-бара при низком балансе менее 100 кредитов: */

.usage-limits-box.is-low-balance .track.usage-limits-track {
	background: #E55353;
	border: 1px solid #C83333;
}

/* Заполнение полосы потраченных кредитов: */

.usage-spent-fill {
	background: linear-gradient(90deg, #F2A65A, #FFCB8E);
	box-shadow: 0 0 10px rgba(242, 166, 90, .4);
}

/* Строка подписей под прогресс-баром лимитов: */

.usage-limits-labels {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 13px;
	margin-top: 8px;
	transition: opacity .2s ease;
}

/* Подпись потраченных кредитов: */

.usage-limits-spent {
	color: var(--taupe);
}

/* Подпись доступных кредитов: */

.usage-limits-available {
	color: #74C69D;
	font-weight: 500;
}

/* Подпись доступных кредитов при балансе менее 100 кредитов: */

.usage-limits-box.is-low-balance .usage-limits-available {
	color: #FF8F8F;
}

/* Прогресс-бар и подписи баланса во время процесса обновления: */

.usage-limits-box.is-updating .usage-limits-track,
.usage-limits-box.is-updating .usage-limits-labels {
	opacity: .55;
}

/* Группа заголовка и бейджа лимитов: */

.usage-limits-title-group {
	display: flex;
	align-items: center;
	gap: 8px;
}

/* Бейдж тарифа подписки для языковых моделей: */

.claude-tier-badge {
	display: inline-flex;
	align-items: center;
	padding: 2px 8px;
	border-radius: 6px;
	font-size: 11px;
	font-weight: 500;
	line-height: 14px;
	letter-spacing: .3px;
	color: #c084fc;
	background: rgba(168, 85, 247, .16);
	border: 1px solid rgba(168, 85, 247, .32);
}

/* Бейдж тарифа генерации медиа: */

.higgsfield-tier-badge {
	display: inline-flex;
	align-items: center;
	padding: 2px 8px;
	border-radius: 6px;
	font-size: 11px;
	font-weight: 500;
	line-height: 14px;
	letter-spacing: .3px;
	color: #74c69d;
	background: rgba(116, 198, 157, .16);
	border: 1px solid rgba(116, 198, 157, .32);
}

/* Скрытие бейджа тарифа: */

.claude-tier-badge.is-hidden,
.higgsfield-tier-badge.is-hidden {
	display: none !important;
}

/* Блок отдельной метрики лимита Claude: */

.claude-limit-metric-item {
	margin-top: 14px;
}

/* Первая метрика лимита Claude: */

.claude-limit-metric-item:first-of-type {
	margin-top: 10px;
}

/* Шапка метрики лимита Claude: */

.claude-limit-metric-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 6px;
}

/* Заголовок метрики лимита Claude: */

.claude-limit-metric-title {
	font-size: 13px;
	font-weight: 500;
	color: rgba(255, 255, 255, .85);
}

/* Время сброса метрики лимита Claude: */

.claude-limit-metric-reset {
	font-size: 12px;
	color: rgba(255, 255, 255, .45);
	white-space: nowrap;
}

/* Заливка шкалы расхода лимита Claude: */

.claude-limit-fill {
	background: #74C69D;
	transition: width .4s ease;
}

/* Заливка шкалы лимита Claude при расходе более 80%: */

.claude-limit-fill.is-high-usage {
	background: #fbbf24;
}

/* Заливка шкалы лимита Claude при исчерпании более 95%: */

.claude-limit-fill.is-critical-usage {
	background: #f87171;
}

/* Прозрачность метрик лимитов Claude во время обновления: */

.usage-limits-box.is-updating .claude-limit-metric-item {
	opacity: .55;
}

/* Блок мониторинга виртуальной машины: */

.settings-vm-box {
	padding: 16px;
	border: 1px solid var(--edge-subtle);
	border-radius: var(--r-card);
	background: rgba(0, 0, 0, .22);
	box-sizing: border-box;
	transition: border-color .2s ease, background .2s ease;
}

/* Наведение на блок мониторинга машины: */

.settings-vm-box:hover {
	border-color: var(--edge-soft);
	background: rgba(0, 0, 0, .28);
}

/* Итоговая строка информации о сервере под шкалой диска: */

.settings-system-summary-line {
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid var(--edge-soft);
	font-family: 'JetBrains Mono', ui-monospace, monospace;
	font-weight: 300;
	font-size: 11px;
	line-height: 1.7;
	color: var(--mute);
}

/* Измерительная шкала ресурса системы: */

.meter {
	margin-bottom: 14px;
}

/* Последняя шкала ресурса перед строкой статуса: */

.settings-vm-box .meter:last-of-type {
	margin-bottom: 0;
}

/* Верхняя строка шкалы с названием и значением: */

.meter-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 12.5px;
	color: var(--taupe);
	margin-bottom: 6px;
}

/* Название показателя измерительной шкалы: */

.meter-name {
	font-size: 12.5px;
	color: var(--taupe);
}

/* Значение показателя измерительной шкалы: */

.meter-val b {
	color: var(--bone);
}

/* Трек шкалы прогресса ресурса: */

.track {
	display: block;
	width: 100%;
	height: 6px;
	border-radius: var(--r-pill);
	background: rgba(255, 236, 214, .08);
	overflow: hidden;
}

/* Заполнение полосы шкалы ресурса: */

.fill {
	display: block;
	height: 100%;
	border-radius: var(--r-pill);
	transition: width .3s ease;
}

/* Цвет заполнения процессора: */

.fill.cpu {
	background: linear-gradient(90deg, #F2A65A, #FFCB8E);
}

/* Цвет заполнения оперативной памяти: */

.fill.ram {
	background: linear-gradient(90deg, #8FA3BC, #ADC3DC);
}

/* Цвет заполнения дискового пространства: */

.fill.dsk {
	background: linear-gradient(90deg, #B4593A, #E08264);
}

/* Подзаголовок карточки в модальном окне: */

.sheet-sub {
	font-size: 12.5px;
	color: var(--mute);
	margin: 0 0 16px;
}

/* Мета-информация о системе в подвале вкладки: */

.sheet-meta {
	margin-top: 20px;
	padding-top: 14px;
	border-top: 1px solid var(--edge-soft);
	font-family: 'JetBrains Mono', ui-monospace, monospace;
	font-weight: 300;
	font-size: 11px;
	line-height: 1.8;
	color: var(--mute);
}

/* Мелкое примечание в модальном окне: */

.sheet-note {
	font-size: 11.5px;
	line-height: 1.65;
	color: var(--mute);
	margin: 10px 0 0;
}

/* Сегментный переключатель выбора режима: */

.seg {
	display: flex;
	gap: 3px;
	padding: 3px;
	flex: 0 0 auto;
	border-radius: var(--r-pill);
	background: rgba(11, 9, 7, .34);
	border: 1px solid var(--edge-soft);
}

/* Кнопка внутри сегментного переключателя: */

.seg button {
	padding: 6px 14px;
	border: 0;
	border-radius: var(--r-pill);
	background: transparent;
	color: var(--taupe);
	font-family: inherit;
	font-size: 12px;
	font-weight: 500;
	cursor: pointer;
	transition: color .2s, background-color .2s;
}

/* Наведение на кнопку переключателя: */

.seg button:hover {
	color: var(--bone);
}

/* Активное состояние сегментной кнопки: */

.seg button.is-on {
	background-color: rgba(242, 166, 90, .16);
	color: var(--ember);
}

/* Кнопки управления кастомным фоном: */

.bg-custom-actions {
	display: flex;
	gap: 8px;
	align-items: center;
}

/* Маленькая кнопка с контурной рамкой: */

.btn-sm {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 8px 16px;
	border-radius: var(--r-pill);
	border: 1px solid var(--edge);
	background: transparent;
	color: var(--bone);
	font-family: inherit;
	font-size: 12px;
	font-weight: 500;
	cursor: pointer;
	white-space: nowrap;
	transition: background-color .25s, border-color .25s;
}

/* Наведение на маленькую кнопку: */

.btn-sm:hover {
	background-color: rgba(242, 166, 90, .16);
	border-color: rgba(242, 166, 90, .45);
}

/* Сплошная янтарная кнопка действия: */

.btn-solid {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	flex: 0 0 auto;
	padding: 9px 20px;
	border-radius: var(--r-pill);
	border: 0;
	background: linear-gradient(158deg, #FFCB8E, var(--ember));
	color: #1B120A;
	font-family: inherit;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
	white-space: nowrap;
	box-shadow: 0 8px 20px -8px rgba(242, 166, 90, .6);
	transition: background .2s, box-shadow .2s;
	text-decoration: none;
}

/* Наведение на сплошную янтарную кнопку: */

.btn-solid:hover {
	background: linear-gradient(158deg, #FFD8A8, #F5B06A);
}

/* Иконка внутри сплошной янтарной кнопки: */

.btn-solid-icon {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
	display: block;
}

/* Сетка управления: */

.settings-management-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-top: 0;
}

/* Карточка управления: */

.settings-management-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	background: rgba(0, 0, 0, 0.22);
	border: 1px solid var(--edge-subtle);
	border-radius: var(--r-card);
	padding: 16px;
	box-sizing: border-box;
	transition: border-color 0.2s ease, background 0.2s ease;
}

/* Наведение на карточку блока: */

.settings-management-card:hover {
	border-color: var(--edge-soft);
	background: rgba(0, 0, 0, 0.32);
}

/* Кнопка меню: */

.btn-management {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: 42px;
	padding: 10px 16px;
	border-radius: var(--r-pill);
	font-family: inherit;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	text-align: center;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
	box-sizing: border-box;
}

/* Кнопка перезагрузки: */

.btn-management.btn-reboot {
	background: rgba(242, 166, 90, 0.09);
	border: 1px solid rgba(242, 166, 90, 0.28);
	color: #f6ad55;
}

/* Наведение на перезагрузку: */

.btn-management.btn-reboot:hover {
	background: rgba(242, 166, 90, 0.18);
	border-color: rgba(242, 166, 90, 0.5);
	color: #fed7aa;
	box-shadow: 0 0 16px rgba(242, 166, 90, 0.25);
}

/* Нажатие кнопки перезапуска: */

.btn-management.btn-reboot:active {
	transform: scale(0.98);
}

/* Кнопка выхода из чата: */

.btn-management.btn-logout {
	background: rgba(239, 68, 68, 0.09);
	border: 1px solid rgba(239, 68, 68, 0.28);
	color: #f87171;
}

/* Наведение на кнопку выхода: */

.btn-management.btn-logout:hover {
	background: rgba(239, 68, 68, 0.18);
	border-color: rgba(239, 68, 68, 0.5);
	color: #fca5a5;
	box-shadow: 0 0 16px rgba(239, 68, 68, 0.25);
}

/* Клик по кнопке выхода сессии: */

.btn-management.btn-logout:active {
	transform: scale(0.98);
}

/* Пояснение управления: */

.settings-management-note {
	font-size: 11.5px;
	line-height: 1.45;
	color: var(--mute);
	margin: 0;
}

/* Маленькая приглушённая кнопка: */

.btn-quiet-sm {
	padding: 8px 14px;
	border: 1px solid transparent;
	border-radius: var(--r-pill);
	background: transparent;
	color: var(--mute);
	font-family: inherit;
	font-size: 12px;
	font-weight: 500;
	cursor: pointer;
	transition: color .2s, border-color .2s;
}

/* Наведение на приглушённую кнопку: */

.btn-quiet-sm:hover {
	color: var(--bone);
	border-color: var(--edge-soft);
}

/* Карточка информации о тарифе биллинга: */

.billing-info-card {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	padding: 18px 20px;
	border-radius: var(--r-card);
	background: rgba(255, 236, 214, .04);
	border: 1px solid var(--edge-soft);
}

/* Иконка карточки биллинга: */

.billing-card-icon {
	flex: 0 0 24px;
	color: var(--ember);
	margin-top: 2px;
}

/* Текстовая колонка биллинга: */

.billing-card-text {
	display: flex;
	flex-direction: column;
	gap: 8px;
	font-size: 13px;
	line-height: 1.55;
	color: var(--taupe);
}

/* Главный текст тарифа в биллинге: */

.billing-main-text {
	margin: 0;
	font-size: 16px;
	font-weight: 400;
	color: var(--bone);
}

/* Подтекст с описанием условий биллинга: */

.billing-sub-text {
	margin: 0;
	color: var(--taupe);
}

/* Адаптивные стили модального окна для узких экранов: */

@media (max-width: 860px) {

	.modal {
		padding: 8px;
	}

	.sheet {
		flex-direction: row;
		height: calc(100dvh - 16px);
		max-height: calc(100dvh - 16px);
	}

	.sheet-nav {
		width: 56px;
		flex: 0 0 56px;
		flex-direction: column;
		gap: 6px;
		overflow-y: auto;
		overflow-x: hidden;
		padding: 16px 6px;
		border-right: 1px solid var(--edge-soft);
		border-bottom: 0;
		align-items: center;
	}

	.sheet-nav .eyebrow {
		display: none;
	}

	.set-nav {
		width: 44px;
		height: 44px;
		padding: 0;
		justify-content: center;
		align-items: center;
		border-radius: var(--r-pill);
		flex: 0 0 44px;
	}

	.set-nav .set-nav-label {
		display: none;
	}

	.set-nav + .set-nav {
		margin-top: 0;
	}

	.set-nav svg {
		width: 18px;
		height: 18px;
		flex: 0 0 18px;
	}

	.sheet-head, .sheet-body {
		padding-left: 16px;
		padding-right: 16px;
	}

	.sheet-head {
		padding-top: 16px;
		padding-bottom: 14px;
		border-bottom: 1px solid var(--edge-soft);
	}

	.sheet-body {
		padding-top: 16px;
		padding-bottom: 20px;
	}

	.sheet-title {
		font-size: 20px;
	}

	.rowline {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
	}

	.rowline-avatar {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
	}

	.avatar-actions-wrap {
		width: 100%;
		justify-content: flex-start;
		flex-wrap: wrap;
	}

	.inp {
		width: 100%;
		box-sizing: border-box;
	}

	.settings-management-grid {
		grid-template-columns: 1fr;
	}

}

/* Оверлей обратного отсчёта перезагрузки сервера */

.reboot-countdown-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.82);
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
	padding: 24px;
	box-sizing: border-box;
}

/* Карточка таймера перезагрузки сервера */

.reboot-countdown-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	max-width: 440px;
	width: 100%;
	padding: 36px 32px;
	background: rgba(26, 20, 16, 0.94);
	border: 1px solid rgba(242, 166, 90, 0.28);
	border-radius: var(--r-shell);
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7), 0 0 32px rgba(242, 166, 90, 0.15);
	box-sizing: border-box;
}

/* Круг с иконкой перезагрузки сервера */

.reboot-countdown-icon-circle {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: rgba(242, 166, 90, 0.12);
	border: 1px solid rgba(242, 166, 90, 0.35);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--amber);
	margin-bottom: 20px;
	animation: spin 4s linear infinite;
}

/* Заголовок таймера перезагрузки сервера */

.reboot-countdown-title {
	font-size: 18px;
	font-weight: 500;
	color: var(--bone);
	margin-bottom: 12px;
}

/* Описание ожидания перезагрузки сервера */

.reboot-countdown-description {
	font-size: 13px;
	line-height: 1.55;
	color: var(--sand);
	margin-bottom: 24px;
}

/* Число секунд обратного отсчёта перезагрузки */

.reboot-countdown-timer {
	font-size: 28px;
	font-weight: 600;
	color: var(--amber);
	letter-spacing: 0.5px;
	padding: 8px 24px;
	background: rgba(0, 0, 0, 0.35);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: var(--r-pill);
}

/* Круглый аватар пользователя с загруженным фото */

.account-avatar.has-image {
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	border: 1px solid rgba(242, 166, 90, 0.4);
}

/* Строка аватара в настройках профиля: */

.rowline-avatar {
	align-items: center;
	justify-content: space-between;
}

/* Колонка заголовка и подсказки аватара: */

.avatar-meta-col {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

/* Мелкая подсказка о формате аватара: */

.avatar-spec-note {
	font-size: 11px;
	color: var(--mute);
	line-height: 1.4;
}

/* Блок действий с аватаром: */

.avatar-actions-wrap {
	display: flex;
	align-items: center;
	gap: 10px;
}

/* Превью аватара в модальном окне настроек: */

.modal-avatar-preview {
	width: 44px;
	height: 44px;
	flex: 0 0 44px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(158deg, rgba(255, 203, 142, .9), rgba(242, 166, 90, .75));
	color: #1B120A;
	font-size: 14px;
	font-weight: 500;
	user-select: none;
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

/* Превью аватара с загруженным изображением: */

.modal-avatar-preview.has-image {
	cursor: pointer;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	border: 1.5px solid rgba(242, 166, 90, 0.45);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

/* Наведение на кликабельный аватар: */

.modal-avatar-preview.has-image:hover {
	transform: scale(1.06);
	border-color: rgba(242, 166, 90, 0.85);
	box-shadow: 0 6px 18px rgba(242, 166, 90, 0.35);
}

/* Кнопка действия с аватаром: */

.btn-avatar-control {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 14px;
	border-radius: var(--r-pill);
	border: 1px solid var(--edge);
	background: rgba(255, 236, 214, 0.04);
	color: var(--bone);
	font-family: inherit;
	font-size: 12px;
	font-weight: 500;
	cursor: pointer;
	white-space: nowrap;
	transition: background-color .2s, border-color .2s, color .2s;
}

/* Наведение на кнопку действия с аватаром: */

.btn-avatar-control:hover {
	background: rgba(242, 166, 90, 0.12);
	border-color: rgba(242, 166, 90, 0.45);
	color: var(--ember);
}

/* Кнопка удаления пользовательского аватара: */

.btn-avatar-delete {
	color: #F87171;
	border-color: rgba(239, 68, 68, 0.3);
	padding: 7px 10px;
}

/* Наведение на кнопку удаления аватара: */

.btn-avatar-delete:hover {
	background: rgba(239, 68, 68, 0.15);
	border-color: #EF4444;
	color: #FCA5A5;
}

/* Оверлей просмотра аватара в полном размере: */

.avatar-lightbox-overlay {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	animation: modal-fade-in .2s cubic-bezier(.16, 1, .3, 1);
}

/* Фон-скрим окна просмотра аватара: */

.avatar-lightbox-scrim {
	position: absolute;
	inset: 0;
	background: rgba(7, 5, 4, .86);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
}

/* Контейнер содержимого просмотра аватара: */

.avatar-lightbox-content {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: 90vw;
	max-height: 90vh;
	background: rgba(20, 16, 13, .9);
	border: 1px solid var(--edge-soft);
	border-radius: 24px;
	padding: 24px;
	box-shadow: 0 24px 64px rgba(0, 0, 0, .7), 0 0 32px rgba(242, 166, 90, .12);
	backdrop-filter: blur(24px);
	-webkit-backdrop-filter: blur(24px);
	animation: modal-scale-in .22s cubic-bezier(.16, 1, .3, 1);
}

/* Кнопка закрытия окна просмотра аватара: */

.avatar-lightbox-close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: rgba(255, 236, 214, .06);
	border: 1px solid var(--edge-soft);
	color: var(--taupe);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color .2s, color .2s, transform .2s;
}

/* Наведение на кнопку закрытия аватара: */

.avatar-lightbox-close:hover {
	background: rgba(255, 236, 214, .14);
	color: var(--bone);
	transform: scale(1.06);
}

/* Обёртка круглого изображения аватара: */

.avatar-lightbox-image-wrap {
	width: 340px;
	height: 340px;
	max-width: 75vw;
	max-height: 75vw;
	border-radius: 50%;
	overflow: hidden;
	border: 3px solid rgba(242, 166, 90, .4);
	box-shadow: 0 12px 36px rgba(0, 0, 0, .55);
	display: flex;
	align-items: center;
	justify-content: center;
	background: #14100D;
	margin: 10px 0 16px;
}

/* Изображение аватара в окне просмотра: */

.avatar-lightbox-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Подпись под аватаром в окне просмотра: */

.avatar-lightbox-caption {
	font-size: 16px;
	font-weight: 500;
	color: var(--bone);
	margin: 0;
	text-align: center;
}


