@charset "UTF-8";
:root {
  --fontFamilyH: "Okta Neue Ultra";
  --fontFamilyS: "Okta Neue Normal";
  --fontFamily: "Okta Neue";
  --greyText: #3a4156;
  --blueText: #0008b6;
  --lightGrey: #cce5f7;
  --borderGrey: #becad3;
  --black: #000;
  --formBorder: #aacce3;
  --serviceBg: #edf7ff;
}

@font-face {
    font-family: "chatIcons";
    src: url("../fonts/chatIcons.woff2") format("woff2"),
        url("../fonts/chatIcons.ttf") format("truetype"),
        url("../fonts/chatIcons.woff") format("woff");
    font-weight: normal;
    font-style: normal;
    font-display: block;
}


@font-face {
	font-family: 'Okta Neue';
	src: url('../fonts/Okta_Neue_Font/OktaNeue-Light.eot');
	src: local('Okta Neue Light'), local('OktaNeue-Light'),
	url('../fonts/Okta_Neue_Font/OktaNeue-Light.eot?#iefix') format('embedded-opentype'),
	url('../fonts/Okta_Neue_Font/OktaNeue-Light.woff2') format('woff2'),
	url('../fonts/Okta_Neue_Font/OktaNeue-Light.woff') format('woff'),
	url('../fonts/Okta_Neue_Font/OktaNeue-Light.ttf') format('truetype');
	font-weight: 300;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Okta Neue';
	src: url('../fonts/Okta_Neue_Font/OktaNeue-Medium.eot');
	src: local('Okta Neue Medium'), local('OktaNeue-Medium'),
	url('../fonts/Okta_Neue_Font/OktaNeue-Medium.eot?#iefix') format('embedded-opentype'),
	url('../fonts/Okta_Neue_Font/OktaNeue-Medium.woff2') format('woff2'),
	url('../fonts/Okta_Neue_Font/OktaNeue-Medium.woff') format('woff'),
	url('../fonts/Okta_Neue_Font/OktaNeue-Medium.ttf') format('truetype');
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Okta Neue';
	src: url('../fonts/Okta_Neue_Font/OktaNeue-Thin.eot');
	src: local('Okta Neue Thin'), local('OktaNeue-Thin'),
	url('../fonts/Okta_Neue_Font/OktaNeue-Thin.eot?#iefix') format('embedded-opentype'),
	url('../fonts/Okta_Neue_Font/OktaNeue-Thin.woff2') format('woff2'),
	url('../fonts/Okta_Neue_Font/OktaNeue-Thin.woff') format('woff'),
	url('../fonts/Okta_Neue_Font/OktaNeue-Thin.ttf') format('truetype');
	font-weight: 100;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Okta Neue Normal';
	src: url('OktaNeue-Normal.eot');
	src: local('../fonts/Okta_Neue_Font/Okta Neue Normal'), local('OktaNeue-Normal'),
	url('../fonts/Okta_Neue_Font/OktaNeue-Normal.eot?#iefix') format('embedded-opentype'),
	url('../fonts/Okta_Neue_Font/OktaNeue-Normal.woff2') format('woff2'),
	url('../fonts/Okta_Neue_Font/OktaNeue-Normal.woff') format('woff'),
	url('../fonts/Okta_Neue_Font/OktaNeue-Normal.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Okta Neue';
	src: url('../fonts/Okta_Neue_Font/OktaNeue-Regular.eot');
	src: local('Okta Neue'), local('OktaNeue-Regular'),
	url('../fonts/Okta_Neue_Font/OktaNeue-Regular.eot?#iefix') format('embedded-opentype'),
	url('../fonts/Okta_Neue_Font/OktaNeue-Regular.woff2') format('woff2'),
	url('../fonts/Okta_Neue_Font/OktaNeue-Regular.woff') format('woff'),
	url('../fonts/Okta_Neue_Font/OktaNeue-Regular.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Okta Neue Ultra';
	src: url('OktaNeue-UltraLight.eot');
	src: local('Okta Neue Ultra Light'), local('OktaNeue-UltraLight'),
	url('../fonts/Okta_Neue_Font/OktaNeue-UltraLight.eot?#iefix') format('embedded-opentype'),
	url('../fonts/Okta_Neue_Font/OktaNeue-UltraLight.woff2') format('woff2'),
	url('../fonts/Okta_Neue_Font/OktaNeue-UltraLight.woff') format('woff'),
	url('../fonts/Okta_Neue_Font/OktaNeue-UltraLight.ttf') format('truetype');
	font-weight: 200;
	font-style: normal;
	font-display: swap;
}


.icon {
    font-family: "chatIcons" !important;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;

    /* Better Font Rendering =========== */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.icon.robot {
	font-size: 1.2rem;
}
.rotate-icon {
	transform: rotate(180deg);
}
html {
  font-family: var(--fontFamily), sans-serif;
  font-size: 16px;
  background: #fff;
}
body {
	padding: 0;
	margin: 0;
	position: relative;
	color: var(--greyText);
	min-height: 100vh; 
}

body.process:before {
	content: '';
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: #000;
	opacity: 0.6;
	z-index: 15;
}
body.process:after {
	content: '';
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 16;
	background-image: url("data:image/svg+xml,%3Csvg%20fill%3D%27hsl%280,%20100%25,%20100%25%29%27%20viewBox%3D%270%200%2024%2024%27%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%3E%3Ccircle%20cx%3D%274%27%20cy%3D%2712%27%20r%3D%273%27%3E%3Canimate%20id%3D%27spinner_jObz%27%20begin%3D%270%3Bspinner_vwSQ.end-0.25s%27%20attributeName%3D%27r%27%20dur%3D%270.75s%27%20values%3D%273%3B.2%3B3%27%2F%3E%3C%2Fcircle%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%2712%27%20r%3D%273%27%3E%3Canimate%20begin%3D%27spinner_jObz.end-0.6s%27%20attributeName%3D%27r%27%20dur%3D%270.75s%27%20values%3D%273%3B.2%3B3%27%2F%3E%3C%2Fcircle%3E%3Ccircle%20cx%3D%2720%27%20cy%3D%2712%27%20r%3D%273%27%3E%3Canimate%20id%3D%27spinner_vwSQ%27%20begin%3D%27spinner_jObz.end-0.45s%27%20attributeName%3D%27r%27%20dur%3D%270.75s%27%20values%3D%273%3B.2%3B3%27%2F%3E%3C%2Fcircle%3E%3C%2Fsvg%3E");
	background-size: 5rem;
	background-repeat: no-repeat;
	background-position: center;
	
}

* {
	outline: none;
}
a {
	text-decoration: none;
}

main {
	padding-bottom: 80px;
	background: linear-gradient(0deg, rgba(255, 255, 255, 0) 2%, rgba(223, 241, 255, 0.5) 49%, rgba(255, 255, 255, 0) 100%);	
}

h1,
.h1 {
	font-size: 3.5rem;
    font-family: var(--fontFamilyH), sans-serif;
    text-transform: uppercase;
    font-weight: normal;
    line-height: 130%;
    width: 100%;
    padding: 0;
    margin: 0;
	font-weight: 600;
}
h1 span,
.h1 span {
	color: var(--blueText);
}

h2,
.h2 {
	font-size: 3rem;
	font-family: var(--fontFamilyH), sans-serif;
	text-transform: uppercase;
	font-weight: normal;
	line-height: 130%;
	padding: 0;
    margin: 0 0 3rem 0;	
	width: 100%;
	font-weight: 600;
}
h2 span,
.h2 span {
	color: var(--blueText);
}

h3,
.h3 {
	font-size: 1.7rem;
	font-family: var(--fontFamilyS), sans-serif;
	text-transform: uppercase;
	font-weight: normal;
	line-height: 130%;
	width: 100%;
}
h3 span,
.h3 span {
	color: var(--blueText);
}

h4,
.h4 {
	font-size: 1.2rem;
	font-family: var(--fontFamilyS), sans-serif;
	text-transform: uppercase;
	font-weight: normal;
	line-height: 130%;
	width: 100%;
}
h4 span,
.h4 span {
	color: var(--blueText);
}
[class*=__container]:not(.fancybox__container) {
	display: flex;
	position: relative;
	width: 100%;
	max-width: var(--maxContent);
	margin: auto;
}

[class*=__row] {
	padding: 0 7.66% 0 7.66%;
	display: flex;
	flex-wrap: wrap;
	width: 100%;
}
section {
	width: 100%;
}
section:not(:last-child) {
	margin-bottom: 5rem;
}

@property --btnColor1 {
  syntax: '<color>';
  initial-value: #0893fc;
  inherits: false;
}

@property --btnColor2 {
  syntax: '<color>';
  initial-value: #0008b6;
  inherits: false;
}

.bg-white {
	background:#fff;
}

.btn {
	border-radius: 15rem;
	padding: 1.2rem 2rem;
	background: linear-gradient(90deg, var(--btnColor1) 0%, var(--btnColor2) 100%);
	color: #fff;
	font-weight: 500;
	font-size: 0.8rem;
	text-transform: uppercase;
	display: block;
	border: none;
	cursor: pointer;
	width: max-content;
	text-align: center;
	transition: --btnColor1 .3s, --btnColor2 .3s;
	position: relative;
	font-family: var(--fontFamily), sans-serif;
    line-height: 180%;
	user-select: none;
}

.btn:hover {  
  --btnColor1: #0893fc;
  --btnColor2: #0893fc;
}
.btn.process {
	color: transparent;
	pointer-events: none;
}
.btn.process:before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image: url("data:image/svg+xml,%3Csvg%20fill%3D%27hsl%280,%20100%25,%20100%25%29%27%20viewBox%3D%270%200%2024%2024%27%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%3E%3Ccircle%20cx%3D%274%27%20cy%3D%2712%27%20r%3D%273%27%3E%3Canimate%20id%3D%27spinner_jObz%27%20begin%3D%270%3Bspinner_vwSQ.end-0.25s%27%20attributeName%3D%27r%27%20dur%3D%270.75s%27%20values%3D%273%3B.2%3B3%27%2F%3E%3C%2Fcircle%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%2712%27%20r%3D%273%27%3E%3Canimate%20begin%3D%27spinner_jObz.end-0.6s%27%20attributeName%3D%27r%27%20dur%3D%270.75s%27%20values%3D%273%3B.2%3B3%27%2F%3E%3C%2Fcircle%3E%3Ccircle%20cx%3D%2720%27%20cy%3D%2712%27%20r%3D%273%27%3E%3Canimate%20id%3D%27spinner_vwSQ%27%20begin%3D%27spinner_jObz.end-0.45s%27%20attributeName%3D%27r%27%20dur%3D%270.75s%27%20values%3D%273%3B.2%3B3%27%2F%3E%3C%2Fcircle%3E%3C%2Fsvg%3E");
	background-size: 3rem;
	background-repeat: no-repeat;
	background-position: center;
}
.btn:disabled {
    cursor: no-drop;
    background: var(--borderGrey);
	color: var(--greyText);
	opacity: 0.5;
}

.btn-border {
    padding: 0.25rem 0.5rem;
    border-radius: 0.3rem;
    border: 1px solid var(--formBorder);
    max-width: max-content;
	transition: 0.3s;
}
.btn-border:hover {
	color: var(--blueText);
}
.btn-border.icon-btn2 {
	min-width: 2.1rem;
    min-height: 2.1rem;
	max-height: 2.1rem;
    background: #fff;
    font-size: 1rem;
    padding: 0;
    display: block;
    margin: auto;
    line-height: 2.1rem;
    text-align: center;
}

.icon-btn2.process .icon {
	opacity: 0;
}

.icon-btn2.process {
	transition: 0s;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3c?xml version='1.0' encoding='UTF-8' standalone='no'?%3e%3csvg xmlns:svg='http://www.w3.org/2000/svg' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' version='1.0' width='64px' height='64px' viewBox='0 0 128 128' xml:space='preserve'%3e%3cg%3e%3cpath fill='%230008b6' d='M109.25 55.5h-36l12-12a29.54 29.54 0 0 0-49.53 12H18.75A46.04 46.04 0 0 1 96.9 31.84l12.35-12.34v36zm-90.5 17h36l-12 12a29.54 29.54 0 0 0 49.53-12h16.97A46.04 46.04 0 0 1 31.1 96.16L18.74 108.5v-36z'/%3e%3canimateTransform attributeName='transform' type='rotate' from='0 64 64' to='360 64 64' dur='1120ms' repeatCount='indefinite'%3e%3c/animateTransform%3e%3c/g%3e%3c/svg%3e");
	background-size: 1rem;
	background-position: center;
	background-repeat: no-repeat;
	
}
.btn-border.icon-btn-text {
	font-size: 0.85rem;
    padding: 0.25rem 0.75rem;
    align-items: center;
    display: flex;
    gap: 0.2rem;
    background: #fff;
    margin: unset;
    line-height: 2.1rem;
    text-align: center;
}
.btn-border.icon-btn-text .icon {
	font-size: 1rem;
    display: block;
}
.crumbs {
	width: 100%;
	display: flex;
	list-style: none;
	font-size: 1rem;
	gap: 1.8rem; 
	padding: 0;
	margin: 3.5rem 0 0 0;
}
.crumbs li {
	display: block;
}
.crumbs a {
	color: var(--blueText);
	position: relative;
}
.crumbs a:after {
	content: '/';
    position: absolute;
    top: 0;
    right: -1.15rem;
    pointer-events: none;
	color: var(--greyText);
}
.title-description {
	font-weight: 400;
	font-size: 1.7rem;
	color: var(--greyText);
}
.tiles-3,
.tiles-4 {
	width: 100%;
    display: flex;
    gap: 1.43rem;
    flex-wrap: wrap;
    justify-content: flex-start;
}
.tiles-3 .tile {
    max-width: calc(33% - 3rem);
    width: -webkit-fill-available;
}
.tiles-4 .tile {
    max-width: calc(25% - 3.25rem);
    width: -webkit-fill-available;
}
.tile {
	border: 0.05rem solid var(--lightGrey);
	border-radius: 1rem;
	padding: 1rem;
	position: relative;
	margin-top: 2.5rem;
}

.border-block {
	width: 100%;
	border: 0.05rem solid var(--lightGrey);
	border-radius: 1rem;
	position: relative;
}
input[type=text],
input[type=tel],
input[type=email],
input[type=password],
input[type=number],
input[type=date],
textarea {
	border: 0.05rem solid var(--formBorder);
	border-radius: 0.5rem;
	padding: 0.7rem 1rem;
	font-size: 0.8rem;
	width: -webkit-fill-available;
	font-family: var(--fontFamily), sans-serif;
}

input[type=date] {
	width: initial;
}

input::placeholder,
textarea::placeholder {
	font-size: 0.8rem;
	color: #aeaeaf;
	font-family: var(--fontFamily), sans-serif;
	
}
.form-group {
	position: relative;
    margin-bottom: 0.8rem;
}
.form-group .error {
	color: #dd0029;
    font-size: 0.7rem;
    left: 0.25rem;
    display: none;
    position: absolute;
    bottom: -0.75rem;
}
.form-group.haserror .error {
	display: block;
}
.checkbox input[type=checkbox] {
	display: none;
}
.checkbox label {
	position: relative;
    padding-left: 1.15rem;
    font-size: 0.8rem;
	cursor: pointer;
	line-height: 0.8rem;
    display: block;	
}
.checkbox label a {
	color: var(--blueText);
}
.checkbox label:before {
	content: '';
    display: block;
    border: 0.05rem solid var(--formBorder);
    border-radius: 0.1rem;
    width: 0.75rem;
    height: 0.75rem;
    position: absolute;
    left: 0;
    top: 0.1rem;
}
.checkbox label:after {
	content: '';
	display: inline-block;
	background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 15 17' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M5.95973 16.3306L4.76731 15.2879L4.76795 15.2872L0.000474842 11.1185L1.04249 9.92677L5.80997 14.0955L13.1054 5.7522L14.2978 6.79486L5.95973 16.3306Z' fill='url(%23paint0_linear_224_797)'/><defs><linearGradient id='paint0_linear_224_797' x1='4.16884' y1='6.35137' x2='10.1288' y2='11.5628' gradientUnits='userSpaceOnUse'><stop stop-color='%230893FC'/><stop offset='1' stop-color='%230008B6'/></linearGradient></defs></svg>");
	width: 0.75rem;
	height: 0.75rem;
	background-repeat: no-repeat;
	background-size: cover;
	background-position:center;
	position: absolute;
    top: 0rem;
    left: 0.07rem;
	transition: 0.3s;
	transform: scale(0);
	-webkit-transform-origin-y: 0.5rem;	
}
.checkbox input[type=checkbox]:checked+label:after {
	transform: scale(1);
}

.radio-group input[type=radio] {
	display: none;
}

.radio-group label {
	position: relative;
    padding-left: 1.15rem;
    font-size: 1rem;
	cursor: pointer;
	line-height: 1rem;
    display: block;
}
.radio-group label:before {
	content: '';
    display: block;
    border: 0.05rem solid var(--formBorder);
    border-radius: 50%;
    width: 0.7rem;
    height: 0.7rem;
    position: absolute;
    left: 0;
    top: 0.2rem;	
}
.radio-group label:after {
    content: '';
    display: block;
    border-radius: 50%;
    width: 0.6rem;
    height: 0.6rem;
    position: absolute;
    left: 0.1rem;
    top: 0.3rem;	
	background: linear-gradient(90deg, #0893fc 0%, #0008b6 100%);
	transition: 0.3s;
	transform: scale(0);
}
.radio-group input[type=radio]:checked+label:after {
	transform: scale(1);
}
.radio-group-items {
	display: flex;
    width: 100%;
    justify-content: space-between;
}
:root{
  --maxContent: 1280px;
}

/* базовые (твои) стили подключаются отдельно, тут добавляю только нужные для страниц */
.topbar{
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 10;
  border-bottom: 0.05rem solid var(--lightGrey);
}
.topbar__container{
  display:flex;
  width:100%;
  max-width: var(--maxContent);
  margin:auto;
}
.topbar__row{
  width:100%;
  display:flex;
  padding: 0.9rem 7.66%;
  align-items:center;
}
.topbar__spacer{ flex: 1; }
.topbar__right{
  display:flex;
  align-items:center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content:flex-end;
}
.topbar__link{ color: var(--blueText); font-size: 0.9rem; }
.topbar__balance{ 
	color: var(--greyText); 
	font-size: 0.9rem; 
	line-height: 1rem;
	display: block;
	}
.topbar__sep{
  width:1px;height:1.2rem;background: var(--borderGrey);
}
.topbar__icon {
  height: 32px;
  font-size: 24px;
  display:flex; 
  align-items:center; 
  justify-content:center;
  color: var(--blueText); 
}

.page__container{
  display:flex;
  width:100%;
  max-width: var(--maxContent);
  margin:auto;
}
.page__row{
  padding: 0 7.66%;
  width:100%;
  display:flex;
  flex-wrap: wrap;
}

.page-title {
	width: 100%;
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: 1.5rem 0 1.5rem 0;
}
.page-title__h1{ margin:0; }

.page-title.d-title {
	gap: 0;
    margin: 1.5rem 0 1.5rem 0;
    flex-direction: column;
}
.page-title.d-title h4 {
	margin: 0;
}
.border-block{
  padding: 3rem;
  max-width: calc(100% - 6rem);
}

.section-title{
  margin: 0 0 1.2rem 0;
}

.divider{
  width:100%;
  height: 1px;
  background: var(--lightGrey);
  margin: 2.5rem 0;
}

.label{
  display:block;
  margin: 0 0 0.35rem 0;
  font-size: 0.85rem;
  color: var(--greyText);
}

.form{
  width:100%;
  display:flex;
  flex-direction: column;
  gap: 1.2rem;
}
.form__grid{
  width:100%;
  display:flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}
.form__grid--3 .form-group{ flex: 1 1 220px; }
.form__grid--2 .form-group{ flex: 1 1 260px; }

.date-filter-group {
	
}
.date-filter-group .form-group {
	flex: unset;
}
.date-filter-group .form-group_btns {
	display: flex;
}
.date-filter-group .form-group_btns .btn-group {
	margin-top: auto;
}
.icon-btn{
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 24px;
  color: var(--greyText);
}
.icon-btn img{ width: 1.1rem; height: 1.1rem; object-fit: contain; }

.copy-row{
  width:100%;
  display:flex;
  align-items:center;
  gap: .75rem;
}
.copy-row__value{
  flex: 1;
  padding: .75rem 1rem;
  border: 0.05rem solid var(--lightGrey);
  border-radius: .5rem;
  overflow:auto;

}

.tabs{
  width: 100%;
}
.tabs__head{
	width: 100%;
    display: flex;
    gap: .35rem;
    margin: 0 0 -1px 20px;
    flex-wrap: wrap;
	z-index: 2;
    position: relative;
}
.tabs__tab{
  border: 0.05rem solid var(--lightGrey);
  background: #fff;
  padding: .6rem .9rem;
  border-radius: .6rem .6rem 0 0;
  cursor:pointer;
  font-size: .85rem;
  text-transform: uppercase;
  font-family: var(--fontFamilyS), sans-serif;
}
.tabs__tab.is-active{
  border-bottom-color: #fff;
  color: var(--blueText);
}
.tabs__body{
	width: 100%;
}
.tabs__panel{ display:none; width:100%; }
.tabs__panel.is-active{ display:block; }

.connect{
  width:100%;
  display:flex;
  flex-direction: column;
  gap: 1.5rem;
}

.operators{
  width:100%;
  display:flex;
  flex-direction: column;
  gap: 1.5rem;
}
.operators__top{
  width:100%;
  display:flex;
  justify-content:flex-end;
}

.operators__new{
  display:flex;
  align-items:center;
  gap: .6rem;
  border:none;
  background: transparent;
  cursor:pointer;
  color: var(--greyText);
  font-size: .9rem;
  color: var(--blueText);
}
.operators__new .icon {
	font-size: 42px;
}

.operators.start .operators__top {
	justify-content: center;
}
.operators.start .operators__new {
	flex-flow: column;
	font-size: 1.5rem;
}
.operators.start .operators__new .icon {
	font-size: 4rem;
}
.operators__plus{
  width: 2.2rem;
  height: 2.2rem;
  border: 0.05rem solid var(--lightGrey);
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.operators__plus img{ width: 1.1rem; height: 1.1rem; object-fit: contain; }

.operators__list{
  width:100%;
  display:flex;
  flex-direction: column;
}
.operator-row{
  width:100%;
  display:flex;
  align-items:center;
  gap: 1rem;
  padding: 1.2rem 0;
  border-top: 0.05rem solid var(--lightGrey);
}
.operator-row:last-child{
  border-bottom: 0.05rem solid var(--lightGrey);
}
.operator-row__num{
  width: 1.5rem;
  color: var(--greyText);
}
.operator-row__user{
  display:flex;
  align-items:center;
  gap: .75rem;
  min-width: 180px;
  position: relative;
}
.operator-row__name{
  font-family: var(--fontFamilyS), sans-serif;
  text-transform: uppercase;
}
/* Badge-фаза: состояние оператора на S3 (верификация/пауза) — Operator/GetList → chunk operatorsList */
.operator-row__badge{
	display: block;
    padding: 2px 6px;
    border-radius: .3rem;
    border: 0.05rem solid transparent;
    font-size: 8px;
    line-height: 1.2;
    font-family: var(--fontFamilyS), sans-serif;
    text-transform: uppercase;
    letter-spacing: .02em;
    white-space: nowrap;
    position: absolute;
    left: 22px;
    top: -7px;
}
.operator-row__badge--unverified{
  color: #8a5a00;
  background: #fff4dc;
  border-color: #eed9a9;
}
.operator-row__badge--paused{
  color: var(--greyText);
  background: #eef1f4;
  border-color: var(--borderGrey);
}
.operator-row__code{
  display:flex;
  align-items:center;
  gap: .6rem;
  flex: 1;
  min-width: 260px;
  flex-wrap: wrap;
}
.operator-row__target {
	display: flex;
}
.operator-row__target img {
	width: 20px;
	height: auto;
	margin: auto;
}
.operator-row__codeLabel{ color: var(--greyText); font-size: .9rem; }
.operator-row__codeValue{
  color: var(--greyText);
  font-size: .9rem;
  max-width: 520px;
  overflow:hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/*
.operator-row__actions{
  display:flex;
  align-items:center;
  gap: .75rem;
}
*/
.avatar{
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  border: 0.05rem solid var(--lightGrey);
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  background: #fff;
}
.avatar img{ width: 100%; height: 100%; object-fit: cover; }
.avatar--lg{
  width: 5.2rem;
  height: 5.2rem;
}

/* Дизайн: строго 2 колонки (с моб. адаптацией) */
.design{
  width:100%;
  display:flex;
  gap: 2rem;
  align-items:flex-start;
  flex-wrap: wrap;
  justify-content: space-between;
}
.design__left {
    /* flex: 0 0 420px; */
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    width: 40%;
    max-width: 270px;
}
.design__right {
    /* flex: 1 1 auto; */
    display: flex;
    justify-content: center;
    width: calc(60% - 2rem);
	flex-wrap: wrap;
}
.design-row{
  width:100%;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 1rem;
}
.design-row__label{
  flex: 1 1 auto;
  font-size: .9rem;
}
.design-row__pick{
  flex: 0 0 auto;
  display:flex;
  gap: .6rem;
  align-items:center;
}
.design-row__pick--double{ gap: .6rem; }

.chat-placeholder .design-row {
	position: absolute;
    top: -35px;
    left: 0;
	justify-content: flex-start;
}
.chat-placeholder .design-row__label {
	flex: unset;
}

.swatch{
  width: 1.2rem;
  height: 1.2rem;
  border-radius: .25rem;
  border: 0.05rem solid var(--borderGrey);
  background: #fff;
  cursor:pointer;
}
.design__save{
  margin-top: 1.25rem;
}
#chatPreviewRoot {
	position: absolute;
    width: 100%;
    height: 100%;
}
/*
.chat-placeholder{
  width: min(420px, 100%);
  min-height: 380px;
  border: 0.05rem solid var(--lightGrey);
  border-radius: 1rem;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 48px;
}
.chat-placeholder__inner{
  color: var(--greyText);
  font-family: var(--fontFamilyS), sans-serif;
}
*/
.chat-placeholder{
    width: 100%;
    height: 590px;
	background: #f0f;
	position: relative;
	border-radius: 0.5rem;
	position: relative;
	background: var(--example_bg);
	border: 1px solid #e4e4e4;
}
.chat_example {
	width: 100%;
    height: 100%;
}
.chat_example .site-chat {
	position: absolute;
    bottom: 30px;
    right: 30px;
}

.chat_example .portachat.site-chat.is-open .site-chat__panel {
    margin-top: 10px;
    max-height: 520px!important;
    min-height: 520px!important;
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Модалка */
.modal{
  position: fixed;
  inset: 0;
  opacity: 0;
  z-index: -100;
  display:block; 
  transform: translateY(-80px);
  visibility: hidden;
  transition: opacity .3s, transform .3s, visibility 0s .3s;
}
.modal-open .modal.is_active{ 
	z-index: 100;
	opacity: 1;
	transform: translateY(0);
	overflow-y: auto;
	visibility: visible;
	transition: opacity .3s, transform .3s;
}
.modal-open:before {
  content: '';	
  position:fixed;
  top:0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 20;
  background: rgba(0,0,0,.35);
}
.modal__dialog {
  position: relative;
  width: min(720px, calc(100% - 6rem));
  margin: 8vh auto 0 auto;
  background:#fff;
  border-radius: 1rem;
  border: 0.05rem solid var(--lightGrey);
  padding: 2rem;
  transition: 0.3s;
}
#aiArticleModal .modal__dialog {
	width: min(1100px, calc(100% - 6rem));
}
.modal__close{
  position:absolute;
  top: .85rem;
  right: .85rem;
}
.modal__content{
  display:flex;
  flex-direction: column;
  gap: 1.2rem;
  z-index: 10;
}
.modal__head{
  display:flex;
  align-items:center;
  gap: 1.5rem;
}
.modal__avatarActions{
  display:flex;
  flex-direction: column;
  gap: .5rem;
}
.file-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: .7rem 1rem;
  border: 0.05rem solid var(--lightGrey);
  border-radius: .6rem;
  cursor:pointer;
  user-select:none;
  width: max-content;
}
.file-btn input{ display:none; }

.modal__actions{
  display:flex;
  gap: 1rem;
  justify-content:center;
  flex-wrap: wrap;
  margin-top: 20px;
  width: 100%;
}

.op_row {
	display: flex;
	gap: 2rem;
}
.op_row .form-group:first-child {
	flex: 0 0 65%;
}

.op_row .form-group:last-child {
	flex: 0 0 calc(35% - 2rem);
}

.op_row .form-group:last-child .nice {
	min-width: 100%;
}
.op_row .form-group:last-child .nice .nice-select-dropdown {
	min-width: 100%;
	max-height: 300px!important;
	overflow: unset;
}


/* loading */
body.loading{
  cursor: progress;
}
body.loading:before{
  content:'';
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,.55);
  z-index: 90;
}

.workdays__grid {
	display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.checkbox-color input[type=checkbox]{
	display: none;
}
.checkbox-color label {
	display: block;
    width: 34px;
    height: 34px;
    border: 1px solid var(--borderGrey);
    border-radius: 4px;
    transition: 0.3s;
    padding: 2px;
    font-size: 14px;
    text-align: center;
    cursor: pointer;
    text-align: center;
    line-height: 33px;
}

.checkbox-color input[type=checkbox]:checked+label{
	border: 1px solid var(--blueText);
	background-color: var(--blueText);
	color: #fff;
}
.nice-select .nice-select-dropdown {
	max-height: 150px!important;
}
.nice-select {
	height: 43px!important;
    border-radius: 0.5rem!important;
}
.nice-select:not(.disabled) {
	border: 0.05rem solid var(--formBorder)!important;
}
.worktime__row .form-group {
	display: flex;
    align-items: center;
    gap: 8px;
	margin-right: 10px;
	margin-bottom: 0;
}
.hidden-select {
	visibility: hidden;
    position: absolute;
}
.worktime__row {
	padding-left: 0;
}
.work-wrap {
	display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}
.modal__work h4 {
	margin: 0px 0 10px 0;
    padding: 0;
}
.workdays__title, .worktime__title {
	padding-bottom: 8px;
}
.site-list {
	padding-top: 6rem;
}
.site-list .btn-group {
	display: flex;
    gap: 0.3rem;
    justify-content: end;
    margin-top: -2rem;
}
#sitelist {
	width: 100%;
}
.tile .btn-group .btn-border {
	color: var(--greyText);
	cursor: pointer;
}

.tile .btn-group .btn-border:hover {
	-webkit-box-shadow: 1px 1px 8px 0px rgba(34, 60, 80, 0.2);
	-moz-box-shadow: 1px 1px 8px 0px rgba(34, 60, 80, 0.2);
	box-shadow: 1px 1px 8px 0px rgba(34, 60, 80, 0.2);

}

.topbar__spacer .btn-group {
	max-width: max-content;	
}
.topbar__spacer .btn-group .btn-border {
	border: none;
}

.add-site__row {
	margin-top: 4rem;
	padding: 0;
}
.add-site-btn {
	margin: auto;
    display: flex;
    text-align: center;
    flex-direction: column;
    color: var(--blueText);
	cursor: pointer;
}
.add-site-btn .icon {
	font-size: 4rem;
}	
.checkbox-block label {
	border: 0.05rem solid var(--formBorder);
    border-radius: 0.5rem;
    padding: 0.42rem 1rem 0.42rem 1rem;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 0.5rem;
	cursor: pointer;
	filter: grayscale(0.7);
	transition: 0.3s;
}
.checkbox-block label:hover,
.checkbox-block input[type=checkbox]:checked+label,
.checkbox-block input[type=radio]:checked+label {
	filter: grayscale(0);
	background: #eafffa;
	border: 0.05rem solid #10b981;
}
.checkbox-block label .paylogo {
	display: flex;
    align-items: center;
}
.checkbox-block label img {
	height: 1.8125rem;
}
.checkbox-block label .mark {
	display: block;
    padding: 0.15rem 0.4rem 0.33rem 0.4rem;
    color: #10b981;
    border-radius: 0.25rem;
    margin-top: -0.05rem;
    line-height: 12px;
    background: #b6ffe7;
}
.checkbox-block label .text {
	margin-top: -0.15rem;
}
.checkbox-block input[type=checkbox],
.checkbox-block input[type=radio]{
	display: none;
}
.form__grid--pay .form-group {
	width: 25%;
}
.form__grid--pay .form-pay-group {
	width: calc(75% - 8rem);
}
.form__grid--pay .btn-group {
	width: 100%;
}
.form__grid--pay .paymethod_group {
	display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}
.pay_history {
	display: flex;
    flex-direction: column;
    width: 100%;	
}
.history_row {
	width: 100%;
    display: flex;
    justify-content: space-between;
    padding-bottom: 1rem;
    padding-top: 1rem;
    border-bottom: 1px solid var(--lightGrey);
    align-items: center;
}
.history_row .details {
	display: flex;
    flex-direction: column;
	gap: 0.2rem;
}
.history_row .details .title {
	display: flex;
    flex-direction: row;
    gap: 0.5rem;
	align-items: center;
}
.history_row .details .cause {
	background: var(--borderGrey);
    font-size: 0.75rem;
    line-height: 1.5rem;
    padding: 0 0.5rem;
    border-radius: 0.35rem;
    position: relative;
    bottom: -0.05rem;
}
.history_row .datetime {
	font-size: 0.7rem;
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    opacity: 0.6;
}
.history_row .cost {
	position: relative;
}
.history_row .cost small {
	font-size: 0.7rem;
    position: absolute;
    bottom: -1rem;
    overflow-wrap: break-word;
    white-space: nowrap;
    right: 0;
}

.pagination {
	width: 100%;
    display: flex;
    justify-content: center;	
}

.pagination ul {
	list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.33rem;
	align-items: center;
	padding: 0;
}

.pagination a:not(.move) {
	width: 1.75rem;
    height: 1.75rem;
    display: block;
    border: 1px solid var(--blueText);
    text-align: center;
    background: var(--blueText);
    color: #fff;
    border-radius: 0.25rem;
}
.pagination .active {
	width: 1.75rem;
    height: 1.75rem;
    display: block;
    border: 1px solid var(--blueText);
    text-align: center;
    border-radius: 0.25rem;
    cursor: default;
}

.pagination .move {
	font-size: 1.5rem;
    color: var(--blueText);
}
.pagination .space {
	letter-spacing: 0.1rem;
}

.success_message {
	position: fixed;
    top: 20px;
    right: 20px;
	width: 360px;
    min-height: 60px;
    -webkit-box-shadow: -9px 9px 15px 1px rgba(34, 60, 80, 0.2);
    -moz-box-shadow: -9px 9px 15px 1px rgba(34, 60, 80, 0.2);
    box-shadow: -9px 9px 15px 1px rgba(34, 60, 80, 0.2);
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--lightGrey);
    transition: 0.5s;
    opacity: 0;
    z-index: -10;
    transform: translateY(-160px);
	display: flex;
    align-items: center;
	padding: 20px 20px 25px 20px;
}
.success_message.show {
	z-index: 100;
	opacity: 1;
	transform: translateY(0);
}
.success_message .content {
	display: flex;
    align-items: center;
    margin: auto;
    font-size: 24px;
    width: max-content;
}
.success_message .content .title {
	font-size: 1.3rem;
    line-height: 1.5rem;
    margin-left: 1.5rem;
}

.success_message .content .icon {
	font-size: 36px;
    margin-bottom: -7px;
}
.success_message .content .icon-success {
    color: #3dd400;
}
.success_message .content .icon-error {
    color: #fc0202;
}
.topbar-help .icon {
	display: none;
	font-size: 22px;
}
.form-tariff input[type=radio] {
	display: none;
}

.form-tariff.tiles-3,
.form-tariff.tiles-4 {
	justify-content: center;
}

.form-tariff .tile-title {
	font-size: 18px;
    font-weight: 500;
    text-transform: uppercase;
    display: flex;
    position: relative;
    padding-bottom: 10px;
    align-items: center;
    width: 100%;
    justify-content: center;
}
.form-tariff .tile-title:after {
	content: '';
	position: absolute;
	width: 90%;
	bottom: 0;
	left: 5%;
	height: 1px;
	background: var(--lightGrey);
}

.form-tariff .tile {
	display: flex;
    flex-direction: column;
	max-width: calc(33% - 3rem);
}


.form-tariff .tile .content {
	height: 100%;
    margin-top: 10px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.form-tariff .tile .content p {
	text-align: center;
	margin: auto;
}
.form-tariff .tile .discount-percent {
	color: var(--blueText);
    font-weight: 500;
    margin-right: 8px;
}
.form-tariff .tile .total-price {
	font-size: 14px;
    margin-top: 12px;
	margin-bottom: 1rem;
}
.form-tariff .tile .total-price span {
	
}
.form-tariff .tile .price_block {
	display: flex;
    gap: 10px;
    font-size: 18px;
    align-items: self-end;
	margin-top: 20px;
}
.form-tariff .tile .price_block.oneprice {
	margin: auto;
}
.form-tariff .tile .old-price {
	color: var(--greyText);
    text-decoration: line-through;
    opacity: 0.5;
}
.form-tariff .tile .new-price {
	font-size: 24px;
	line-height: 24px;
    color: var(--blueText);
	font-weight: 500;
}
.form-tariff .tile .new-price span{
	font-size: 14px;
	color: var(--greyText);
	font-weight: normal;
}
.form-tariff .tile .sel-btn {
	padding: 10px 20px;
    border: 1px solid var(--blueText);
    max-width: max-content;
    border-radius: 8px;
    line-height: 20px;
	cursor: pointer;
	margin: 10px auto 0 auto;
	transition: 0.3s;
	background: #fff;
}
.form-tariff .tile .sel-btn span {
	position: relative;
    top: -2px;
}
.form-tariff .tile .sel-btn span.sel {
	display: none;
}
.form-tariff .tile .sel-btn.disabled {
	opacity: 0.5;
    background: var(--borderGrey);
    border-color: var(--borderGrey);
    cursor: no-drop;
    pointer-events: none;
}
.form-tariff input[type=radio]:checked+label {
	color:#fff;
	background: var(--blueText);
}
.form-tariff input[type=radio]:checked+label span:not(.sel){
	display: none;
}
.form-tariff input[type=radio]:checked+label span.sel{
	display: initial;
}
.current-tariff {
    padding: 0.2rem 0.4rem 0.2rem 0.4rem;
    color: var(--blueText);
    font-size: 0.7rem;
    border: 1px solid var(--blueText);
    border-radius: 0.25rem;
    margin: auto;
    line-height: 120%;
	font-weight: 400; 
}
.specmessage {
	margin: auto;
    font-size: 0.7rem;
    border: 1px solid var(--borderGrey);
    padding: 0 0.5rem 0.2rem 0.5rem;
    border-radius: 0.25rem;
}
.balance-info {
	font-size: 14px;
	margin-top: 0;
	width: 100%;
    text-align: center;
}

/* ─── Тарифы: переключатель периодов и карточки-группы (T-21) ─── */
.form-tariff.tariff-groups {
    display: flex;
    flex-wrap: wrap;
}
.tariff-groups .period-switch {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    width: 100%;
    margin-bottom: 0.5rem;
}
.period-switch__btn {
    padding: 0.5rem 1.2rem;
    border: 1px solid var(--lightGrey);
    border-radius: 2rem;
    background: #fff;
    cursor: pointer;
    font-size: 0.9rem;
    transition: 0.3s;
}
.period-switch__btn:hover {
    border-color: var(--blueText);
}
.period-switch__btn.active {
    color: #fff;
    background: var(--blueText);
    border-color: var(--blueText);
}
.refund-info {
    width: 100%;
    text-align: center;
    font-size: 0.85rem;
    color: var(--greyText);
    margin-bottom: 1rem;
}
.trial-block {
    width: 100%;
}
.trial-block .tile {
    max-width: 22rem;
    margin: 1rem auto 0 auto;
}
.tariff-groups .tiles-row,
.tariff-groups .tariff-cards {
    display: flex;
    gap: 1.43rem;
    flex-wrap: wrap;
    justify-content: flex-start;
}
.tariff-card {
    border: 0.05rem solid var(--lightGrey);
    border-radius: 1rem;
    padding: 1rem;
    position: relative;
    margin-top: 0.5rem;
    flex: 1 1 18rem;
    max-width: calc(50% - 1rem);
}
.tariff-groups .tile.tariff-card {
    margin-top: 0.5rem;
}
.tariff-card .tariff-card__desc {
    font-size: 0.8rem;
    color: var(--greyText);
    margin-bottom: 0.75rem;
    text-align: center;
}
.tariff-card .tariff-card__periods {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}
.tariff-card .period-pill {
    display: inline-block;
    padding: 0.25rem 0.7rem;
    border: 1px solid var(--borderGrey);
    border-radius: 2rem;
    font-size: 0.75rem;
    color: var(--greyText);
    cursor: default;
}
.tariff-card .period-pill.active {
    color: var(--blueText);
    border-color: var(--blueText);
}
.tariff-card .tariff-card__price {
    display: flex;
    justify-content: center;
    align-items: self-end;
    gap: 0.6rem;
    font-size: 18px;
    margin-top: 0.75rem;
}
.tariff-card .tariff-card__price .old-price {
    color: var(--greyText);
    text-decoration: line-through;
    opacity: 0.5;
}
.tariff-card .tariff-card__price .new-price {
    font-size: 24px;
    line-height: 24px;
    color: var(--blueText);
    font-weight: 500;
}
.tariff-card .tariff-card__price .new-price span {
    font-size: 14px;
    color: var(--greyText);
    font-weight: normal;
}
.tariff-card .tariff-card__price .discount-percent {
    color: var(--blueText);
    font-weight: 500;
    align-self: center;
    font-size: 0.9rem;
}
.tariff-card .tariff-card__params {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: var(--greyText);
    margin-top: 0.5rem;
}
.tariff-card .total-price {
    font-size: 14px;
    margin-top: 0.75rem;
}
.hidden {
    display: none !important;
}
@media (max-width: 768px) {
    .tariff-card {
        max-width: 100%;
    }
}

/* --- Tariff table --- */
.tariff-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 0.5rem;
}
.tariff-table {
    width: 100%;
    min-width: 640px;
    table-layout: fixed;
    border-collapse: collapse;
}
.tariff-table th,
.tariff-table td {
    border: 1px solid var(--lightGrey, #e0e0e0);
    padding: 0.6rem 0.5rem;
    vertical-align: top;
    text-align: center;
}
.tariff-table th.row-label {
    position: sticky;
    left: 0;
    background: #fff;
    z-index: 1;
    font-weight: 500;
    text-align: left;
    width: 180px;
    min-width: 180px;
    border-right: 2px solid var(--lightGrey, #e0e0e0);
}
.tariff-table__head {
    vertical-align: top;
}
.tariff-table__name {
    font-size: 16px;
    font-weight: 400;
    text-transform: uppercase;
    line-height: 120%;
}
.tariff-table__badge {
    margin-top: 0.4rem;
}
.tariff-table .col-current {
    background: rgba(59, 130, 246, 0.04);
}
/* T-52: колонка текущего тарифа, который больше недоступен (архив/отвязка) */
.tariff-table .col-unavailable {
    opacity: 0.7;
}
.tariff-table__badge--off {
    color: var(--greyText);
    border-color: var(--borderGrey);
    border-style: dashed;
}
.tariff-table .col-hidden {
    display: none;
}
.tariff-cell-price {
    text-align: center;
}
.tariff-cell-price__item {
    display: block;
}
.tariff-card__desc {
	font-weight: normal;
}
.tariff-cell-price__item.hidden {
    display: none;
}
.tariff-cell-price .old-price {
    color: var(--greyText, #999);
    text-decoration: line-through;
    opacity: 0.5;
}
.tariff-cell-price .new-price {
    font-size: 18px;
    color: var(--blueText, #3b82f6);
    font-weight: 500;
}
.tariff-cell-price .discount-percent {
    color: var(--blueText, #3b82f6);
    font-weight: 500;
    font-size: 0.85rem;
    margin-left: 0.3rem;
}
.tariff-cell-price .total-price {
    font-size: 13px;
    margin-top: 0.25rem;
    color: var(--greyText, #999);
}
.tariff-cell-price .specmessage {
    margin: 0.4rem auto 0 auto;
    font-size: 0.7rem;
    border: 1px solid var(--borderGrey, #ddd);
    padding: 0 0.5rem 0.2rem 0.5rem;
    border-radius: 0.25rem;
    display: inline-block;
}
.tariff-cell-select {
    vertical-align: middle;
}
.tariff-cell-select .sel-btn {
    display: inline-block;
}
/* --- Tariff table: sel-btn styles (mirror .form-tariff .tile .sel-btn) --- */
.tariff-table .sel-btn {
    padding: 10px 20px;
    border: 1px solid var(--blueText);
    max-width: max-content;
    border-radius: 8px;
    line-height: 20px;
    cursor: pointer;
    margin: 10px auto 0 auto;
    transition: 0.3s;
    background: #fff;
    display: inline-block;
}
.tariff-table .sel-btn span {
    position: relative;
    top: -2px;
}
.tariff-table .sel-btn span.sel {
    display: none;
}
.tariff-table .sel-btn.disabled {
    opacity: 0.5;
    background: var(--borderGrey);
    border-color: var(--borderGrey);
    cursor: no-drop;
    pointer-events: none;
}
.tariff-table input[type=radio]:checked+label {
    color: #fff;
    background: var(--blueText);
}
.tariff-table input[type=radio]:checked+label span:not(.sel) {
    display: none;
}
.tariff-table input[type=radio]:checked+label span.sel {
    display: initial;
}
.tariff-cell-select .specmessage {
    margin: 0.5rem auto 0 auto;
    font-size: 0.7rem;
    border: 1px solid var(--borderGrey);
    padding: 0.3rem 0.5rem;
    border-radius: 0.25rem;
    display: inline-block;
    text-align: center;
	line-height: 120%;
}
.tariff-row--price td {
    vertical-align: top;
}
.tariff-row--select td {
    vertical-align: middle;
}
@media (max-width: 997px) {
    .tariff-table th.row-label {
        width: 140px;
        min-width: 140px;
        font-size: 0.85rem;
    }
    .tariff-table th,
    .tariff-table td {
        padding: 0.4rem 0.3rem;
    }
}

.sile-list .row {
	width: 100%;
    display: flex;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--borderGrey);
    align-items: center;
    margin-bottom: 10px;
}

.btn-group {
	display: flex;
    gap: 4px;
}
.btn-border {
	cursor: pointer;
}
.sile-list .h4 .icon {
	display: inline-block;
    font-size: 20px;
    position: relative;
    margin-left: 7px;
    bottom: -2px;
	cursor: default;
}
.sile-list .h4 .icon-success {
	color: #3dd400;
}
.sile-list .h4 .icon-error {
	color: #fc0202;
}
.sile-list .h4 small.error {
	text-transform: none;
    font-size: 9px;
    padding: 0px 2px 1px 2px;
    border: 1px solid #fc0202;
    border-radius: 5px;
    display: inline;
    position: relative;
    top: -4px;
    cursor: default;
    margin-left: 10px;
}
.sile-list .btn-row {
	display: flex;
    margin-top: 2rem;
}
.add-article-btn-small {
    border: none;
    background: transparent;
    margin: 0 0.5rem 0 auto!important;
    font-size: 1rem;
    font-family: var(--fontFamilyS), sans-serif;
}
.btn-row .add-site-btn-small,
.add-article-btn-small {
	color: var(--blueText);
    display: flex;
    align-items: center;
    gap: 0.125rem;
    cursor: pointer;
    padding: 0.125rem;
    margin: auto;
}
.btn-row .add-site-btn-small .icon,
.add-article-btn-small .icon {
	font-size: 2rem;
    position: relative;
    bottom: -0.0625rem;
}
.history_table {
	width: 100%;
    text-align: center;
}

.history_table th {
	padding-bottom: 1rem;
}

.history_table td {
	padding-bottom: 0.5rem;
	border-bottom: 1px solid var(--lightGrey);
}

/* Кнопки в строке истории: .btn-border.icon-btn2 имеет margin:auto, в flex-группе
   авто-маргины растащили бы кнопки по краям ячейки */
.history_table .btn-group .btn-border {
	margin: 0;
}
.history_table .btn-group {
	max-width: max-content;
    margin: auto;
    gap: 10px;
}
.table_date span {
	white-space: nowrap;
}
.table_date br {
	display: none;
}
#pdopageChats {
	overflow-x: auto;
}



/* ── Шаблоны вопросов ───────────────────────────── */
.quick-replies-wrap {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
}
.quick-replies-list {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}
.quick-replies-item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}
.quick-replies-input {
	flex: 1;
	padding: 0.6rem 0.8rem;
	border: 0.05rem solid var(--borderGrey);
	border-radius: 0.5rem;
	font-size: 0.85rem;
	font-family: var(--fontFamily), sans-serif;
	outline: none;
	transition: border-color 0.2s;
}

.quick-replies-input--error {
	border-color: #dd0029;
}
.quick-replies-del {
	flex: 0 0 auto;
	color: #999;
	font-size: 18px;
}
.quick-replies-del:hover {
	color: #dd0029;
}

.quick-replies-list.quick-list-empty {
	display: none;
}

@media (max-width: 530px){
	.table_date br {
		display: initial;
	}
	.sile-list>.row {
		flex-wrap: wrap;
		gap: 14px;
	}
	.sile-list>.row .h4 .icon {
		margin-left: 0;
	}
}

.hist_operator {
	display: flex;
    align-items: center;
    gap: 0.5rem;
	justify-content: center;
}
.hist_operator-content {
	display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
} 
.hist_operator_name {
	width: 110px;
    text-align: left;
	line-height: 16px;
} 
.hist_operator img {
	width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
	border: 0.05rem solid var(--lightGrey);
	padding: 1px;
}
.chatmessages-form {
	margin: auto;
}
.chatmessages-form button {
	position: relative;
}
.chatmessages-form .total-msg {
	position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    font-size: 0.65rem;
    width: 1.1rem;
    height: 1.1rem;
    background: var(--blueText);
    color: #fff;
    line-height: 1.15rem;
    border-radius: 50%;
}



.modal-chatcontent {
  --sitechat-bg-messages: #f5f7fb;

  --sitechat-text-timestamp: #adb8d8;

  --sitechat-border-soft: #e4e9f3;

  --sitechat-operator-message: #fff;
  --sitechat-operator-text: #1e2a3b;

  --sitechat-visitor-message: #1b73e8;
  --sitechat-visitor-text: #fff;

  --sitechat-system-bg: #eef2ff;
  --sitechat-system-border: #9aa7e8;
  --sitechat-system-text: #1e2a3b;

  --sitechat-error-bg: #ffe9e9;
  --sitechat-error-border: #ff9e9e;
  --sitechat-error-text: #a40000;

  --sitechat-avatar-bg: #d8def1;
  --sitechat-avatar-text: #40507a;
}
.modal-chatcontent .site-chat__messages {
	overflow-y: auto;
    max-height: 70vh;
}
.modal-chatcontent .site-chat__messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  background: var(--sitechat-bg-messages);
  min-height: 0;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.modal-chatcontent .site-chat__message-row {
  display: flex;
  align-items: flex-end;
  margin-bottom: 16px;
}

.modal-chatcontent .site-chat__message-row--operator {
  justify-content: flex-start;
}

.modal-chatcontent .site-chat__message-row--visitor {
  justify-content: flex-end;
}

.modal-chatcontent .site-chat__message-row--system {
  justify-content: center;
}

.modal-chatcontent .site-chat__message {
  max-width: 75%;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.45;
}

.modal-chatcontent .site-chat__message--operator {
  background: var(--sitechat-operator-message);
  border: 1px solid var(--sitechat-border-soft);
  color: var(--sitechat-operator-text);
  margin-left: 10px;
}

.modal-chatcontent .site-chat__message--visitor {
  background: var(--sitechat-visitor-message);
  color: var(--sitechat-visitor-text);
  margin-right: 10px;
  position: relative;
}
.modal-chatcontent .site-chat__avatar-block {
	position: relative;
    top: -5px;
}
.modal-chatcontent .site-chat__avatar-block .operator-name {
	font-size: 11px;
    position: absolute;
    top: 38px;
    max-width: 60px;
    line-height: 12px;
    color: var(--sitechat-text-timestamp);
    left: -12px;
    text-align: center;
    width: 60px;
}
.modal-chatcontent .site-chat__message--visitor .visitor-name {
	position: absolute;
	top: -15px;
    left: 8px;
    font-size: 11px;
    color: var(--sitechat-text-timestamp);
}
.modal-chatcontent .site-chat__message--system {
  max-width: 90%;
  background: var(--sitechat-system-bg);
  border: 1px dashed var(--sitechat-system-border);
  color: var(--sitechat-system-text);
  text-align: center;
}

.modal-chatcontent .site-chat__message--system.site-chat__message--error {
  background: var(--sitechat-error-bg);
  border-color: var(--sitechat-error-border);
  color: var(--sitechat-error-text);
}

.modal-chatcontent .site-chat__message-body {
  white-space: normal;
  word-break: break-word;
}

.modal-chatcontent .site-chat__message-body img {
	max-width: 100%;
}

.modal-chatcontent .site-chat__message-body a {
  color: inherit;
  text-decoration: underline;
}

.modal-chatcontent .site-chat__timestamp {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: var(--sitechat-text-timestamp);
}

/* Статистика диалога в модалке «История сообщений» (ресурс 9): «Сообщения ИИ: N» / «Инструменты: M» */
.modal-chatcontent .chat-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  padding: 10px 16px;
  border-top: 1px solid var(--sitechat-border-soft);
  font-size: 11px;
  color: var(--sitechat-text-timestamp);
}

.modal-chatcontent .site-chat__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--sitechat-avatar-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--sitechat-avatar-text);
}

.modal-chatcontent .site-chat__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-chatcontent .site-chat__message-body .file-icon {
  display: inline-block;
  width: 14px;
  height: 14px;
  background-image: url(/assets/components/sitechat/img/file.svg);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  margin-right: 4px;
}

/* --- AI message markdown (ресурс 9, Просмотр чата) --- */
.modal-chatcontent .site-chat__message--ai .site-chat__message-body {
  white-space: normal;
}

.modal-chatcontent .site-chat__message--ai .site-chat__message-body ul,
.modal-chatcontent .site-chat__message--ai .site-chat__message-body ol {
  margin: 4px 0;
  padding-left: 20px;
  text-align: left;
}

.modal-chatcontent .site-chat__message--ai .site-chat__message-body li {
  margin-bottom: 2px;
}

.modal-chatcontent .site-chat__message--ai .site-chat__message-body code {
  background: rgba(0, 0, 0, 0.06);
  padding: 1px 4px;
  border-radius: 3px;
  font-size: 13px;
  font-family: 'SF Mono', 'Consolas', 'Monaco', monospace;
}

.modal-chatcontent .site-chat__message--ai .site-chat__message-body p {
  margin: 4px 0;
}

.modal-chatcontent .site-chat__message--ai .site-chat__message-body .site-chat__md-h {
  font-size: 14px;
  font-weight: 600;
  margin: 8px 0 4px;
}

.modal-chatcontent .site-chat__message--ai .site-chat__message-body .site-chat__md-hr {
  border: none;
  border-top: 1px solid var(--sitechat-border-soft, #e4e9f3);
  margin: 8px 0;
}

.success-msg {
	background: #eafffa;
    border: 0.05rem solid #10b981;
    padding: 1rem;
    width: 100%;
    border-radius: 1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.fail-msg {
	background: #ffeaea;
    border: 0.05rem solid #b91010;
    padding: 1rem;
    width: 100%;
    border-radius: 1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

#messagesModal .modal__dialog {
	max-width: 650px;
}






/* адаптив */
@media (max-width: 1200px){
	.tiles-4 .tile {
		max-width: calc(25% - 1.25rem);
	}
}
@media (max-width: 997px){
	.operator-row { 
		flex-wrap: wrap; 
		position: relative;
	}
	.operator-row__code {
		width: 100%;
		flex: auto;
	}
	.operator-row__actions {
		position: absolute;
		top: 20px;
		right: 0px;
	}
	[class*=__row] {
		max-width: calc(100% - 20%);
		margin: auto;
	}
	.form__grid--pay .form-group {
		width: 100%;
	}
	.tiles-4 .tile {
		max-width: 50%;
	}
	
}


@media (max-width: 920px){
  .border-block{ padding: 2rem; }

  .operator-row__actions{ width:100%; justify-content:flex-end; }
  .operator-row__codeValue{ max-width: 100%; }
  .design{ flex-direction: column; }
  .design__left{ flex: 1 1 auto; width:100%; }
  .design__right{ width:100%; justify-content:center; margin-top: 30px;}
  .settings-section{ padding: 0; }
}

@media (max-width: 767px){
	.tiles-4 .tile {
		max-width: 100%;
	}
	
	.hist_operator .hist_operator-content {
		flex-wrap: wrap;
		flex-direction: column;
		gap: 5px;
	}
	.hist_operator .hist_operator_name {
		text-align: center;
	}
	.history_table tr th:nth-child(1),
	.history_table tr th:nth-child(3),
	.history_table tr td:nth-child(1),
	.history_table tr td:nth-child(3)	{
		display: none;
	}
}

@media (max-width: 620px){
	.chat_example {
		max-width: 100%!important;
	}
	.chat-placeholder {
		max-width: 100%!important;
	}
	.site-chat {
		max-width: 85%!important;
	}

}

@media (max-width: 530px){
	h1, .h1 {
		font-size: 2.5rem;
	}
	.tabs__head {
		margin-left: 0;
		flex-direction: column;
		margin-bottom: 0.5rem;
	}
	.tabs__tab {
		border-radius: .6rem;
	}
	
	.tabs__tab.is-active {
		border-bottom-color: var(--lightGrey);
	}
	[class*=__row] {
		padding: 0;
		max-width: calc(100% - 7%);
        margin: auto;
	}	
	.border-block {
		padding: 1rem;
        max-width: calc(100% - 2rem);	
	}
	.worktime {
		width: 100%;
	}
	.avatar--lg {
		width: 60px;
		height: 60px;
	}
	.topbar-help .icon {
		display: block;
	}	
	.topbar-help .txt {
		display: none;
	}	
	.chat_example {
		max-width: 100%;
	}
	.site-chat {
		right: 5%!important;
		max-width: 90% !important;
	}
	.chat-placeholder {
		padding: 0;
		width: calc(100vw - 5rem);
	}
	.checkbox-block {
		width: 205px;
	}
	.settings-section {
		padding: 0 2rem;
	}
	.quick-replies-item {
		flex-wrap: wrap;
	}
	
	.op_row {
		flex-wrap: wrap;
		gap: 0;
        flex-direction: column;
	}


}

/* --- Emoji in chat history --- */

.emoji {
	display: inline-block;
	width: 20px;
	height: 20px;
	vertical-align: middle;
	margin: 0 1px;
}

.emoji--solo {
	width: 40px;
	height: 40px;
}

/* --- AI operator --- */

/* Switch (iOS-style toggle) */
.switch {
	display: flex;
	align-items: center;
	gap: 0.6rem;
}
.switch input[type=checkbox] {
	display: none;
}
.switch label {
	position: relative;
	padding-left: 3rem;
	font-size: 0.85rem;
	cursor: pointer;
	line-height: 1.5rem;
	display: block;
	min-height: 1.5rem;
}
.switch label::before {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 2.4rem;
	height: 1.25rem;
	background: var(--borderGrey);
	border-radius: 1rem;
	transition: background 0.3s;
}
.switch label::after {
	content: '';
	position: absolute;
	left: 0.15rem;
	top: 50%;
	transform: translateY(-50%);
	width: 1rem;
	height: 1rem;
	background: #fff;
	border-radius: 50%;
	transition: transform 0.3s;
	box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.switch input[type=checkbox]:checked + label::before {
	background: var(--blueText);
}
.switch input[type=checkbox]:checked + label::after {
	transform: translateY(-50%) translateX(1.15rem);
}
.switch input[type=checkbox]:disabled + label {
	cursor: default;
	opacity: 0.45;
}

/* AI quota bar (2026-09-20: два бара в общей сетке — колонка бара одной
   ширины для обеих строк, независимо от длины текста рядом) */
.ai-quota {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}
.ai-quota-group {
	display: grid;
	grid-template-columns: minmax(0, 220px) max-content;
	column-gap: 0.75rem;
	row-gap: 0.5rem;
	align-items: center;
}
.ai-quota-group .ai-quota {
	display: contents;
}
.ai-quota-group .ai-quota__bar {
	grid-column: 1;
}
.ai-quota-group .ai-quota__text {
	grid-column: 2;
}
.ai-quota-group .ai-quota__hint {
	grid-column: 1;
	font-size: 0.7rem;
	line-height: 1.2;
	color: var(--greyText);
	opacity: 0.85;
	margin-top: -0.7rem;
    margin-bottom: 0.5rem;	
}
.ai-quota-group .ai-quota__hint:empty {
	display: none;
}
.ai-quota__bar {
	flex: 1;
	height: 0.6rem;
	background: var(--lightGrey);
	border-radius: 0.3rem;
	overflow: hidden;
	max-width: 280px;
}
.ai-quota__fill {
	height: 100%;
	border-radius: 0.3rem;
	background: var(--blueText);
	transition: width 0.4s;
	width: 0%;
}
.ai-quota__bar[data-level="ok"] .ai-quota__fill {
	background: #10b981;
}
.ai-quota__bar[data-level="warn"] .ai-quota__fill {
	background: #eab308;
}
.ai-quota__bar[data-level="full"] .ai-quota__fill {
	background: #fc0202;
}
.ai-quota__text {
	font-size: 0.8rem;
	color: var(--greyText);
	white-space: nowrap;
}

/* T-33: AI quota sync waiting overlay */
.ai-quota-waiting {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2rem 1rem;
}
.ai-quota-waiting__inner {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}
.ai-quota-waiting__dot {
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--sitechat-primary, #4a90d9);
	animation: ai-quota-pulse 1.2s ease-in-out infinite;
}
.ai-quota-waiting__text {
	font-size: 0.95rem;
	color: var(--greyText);
}
@keyframes ai-quota-pulse {
	0%, 100% { opacity: 0.3; transform: scale(0.8); }
	50%      { opacity: 1;   transform: scale(1.2); }
}

/* A-5: покупка пакета ИИ-сообщений (до конца тарифного периода) */
#aiBuyPackage .label {
	margin-bottom: 0.4rem;
	display: block;
}
/* слайдер: заполненная часть — --fill в % (ставится из ai.js) */
#aiPackageRange {
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	height: 0.5rem;
	margin: 0.4rem 0 0;
	padding: 0;
	border: none;
	border-radius: 0.25rem;
	outline: none;
	cursor: pointer;
	background: linear-gradient(to right,
		var(--blueText) var(--fill, 0%),
		var(--borderGrey) var(--fill, 0%));
}
#aiPackageRange::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 1.15rem;
	height: 1.15rem;
	border-radius: 50%;
	background: var(--blueText);
	border: 2px solid #fff;
	box-shadow: 0 1px 3px rgba(0,0,0,.25);
	cursor: pointer;
}
#aiPackageRange::-moz-range-track {
	background: transparent;
}
#aiPackageRange::-moz-range-thumb {
	width: 1.15rem;
	height: 1.15rem;
	border-radius: 50%;
	background: var(--blueText);
	border: 2px solid #fff;
	box-shadow: 0 1px 3px rgba(0,0,0,.25);
	cursor: pointer;
}
#aiPackageRange:disabled {
	opacity: 0.45;
	cursor: default;
}
#aiBuyPackage .btn {
	margin-top: 0.8rem;
}
/* количество + сумма под слайдером */
.ai-pkg__row {
	display: flex;
	align-items: baseline;
	gap: 0.75rem;
	margin-top: 0.6rem;
}
.ai-pkg__qty {
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--greyText);
}
.ai-pkg__sum {
	font-size: 0.95rem;
	color: var(--blueText);
}
#aiPackageNoFunds {
	color: #dd0029;
}
/* модалка подтверждения */
.ai-pkg-modal {
	width: 100%;
}
.ai-pkg-modal__row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.5rem 0;
	font-size: 0.9rem;
	border-bottom: 0.05rem solid var(--lightGrey);
}
.ai-pkg-modal__label {
	color: var(--greyText);
}

/* AI articles list */
.ai-articles {
	display: flex;
	flex-direction: column;
}
.ai-article-row {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.75rem 0;
	border-bottom: 0.05rem solid var(--lightGrey);
	font-size: 0.85rem;
}
.ai-article-row:first-child {
	border-top: 0.05rem solid var(--lightGrey);
}
.ai-article-row__title {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-family: var(--fontFamilyS), sans-serif;
}
.ai-article-row__meta {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 0.6rem;
	color: var(--greyText);
	font-size: 0.75rem;
	white-space: nowrap;
}
.ai-article-row__actions {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 0.4rem;
}
.ai-article-row__actions .btn-border.icon-btn2 {
	color: var(--greyText);
}
.ai-article-row__actions .btn-border.icon-btn2:hover {
	color: var(--blueText);
}
.ai-articles__empty {
	padding: 1.5rem 0;
	text-align: center;
	color: var(--greyText);
	font-size: 0.85rem;
}

/* AI index status */
.ai-index-status {
	font-size: 0.8rem;
	padding: 0.3rem 0.6rem;
	border-radius: 0.3rem;
	display: inline-block;
}
.ai-index-status--empty {
	color: var(--greyText);
}
.ai-index-status--pending {
	color: var(--blueText);
	background: var(--serviceBg);
}
.ai-index-status--processing {
	color: var(--blueText);
	background: var(--serviceBg);
}
.ai-index-status--stale {
	color: #b45309;
	background: #fef3c7;
}
.ai-index-status--completed {
	color: #047857;
	background: #ecfdf5;
}
.ai-index-status--failed {
	color: #b91010;
	background: #ffeaea;
}

/* AI notice (tariff unavailable) */
.notice {
	padding: 0.6rem 0.9rem;
	border-radius: 0.5rem;
	font-size: 0.8rem;
	max-width: calc(100% - 3rem);
}
.notice--warning {
	background: #fef3c7;
	border: 0.05rem solid #eab308;
	color: #92400e;
}

/* AI settings sections */
.ai-settings .settings-section {
	margin-bottom: 2rem;
	padding-bottom: 2rem;
	border-bottom: 0.05rem solid var(--lightGrey);
}
.ai-settings .settings-section:last-child {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: none;
}
.ai-settings .settings-section h4 {
	margin: 0 0 1rem 0;
	font-size: 1rem;
}

/* Avatar upload for AI */
.avatar-upload {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}
.avatar-upload__preview {
	width: 3rem;
	height: 3rem;
	border-radius: 50%;
	border: 0.05rem solid var(--lightGrey);
	overflow: hidden;
	background: var(--serviceBg);
	background-size: cover;
	background-position: center;
	display: flex;
	align-items: center;
	justify-content: center;
}
.avatar-upload__preview img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Article modal: textarea min-height */
#aiArticleContent {
	min-height: 240px;
	resize: vertical;
}

/* Form hint */
.form-hint {
	font-size: 0.75rem;
	color: var(--greyText);
	margin-top: 0.25rem;
}

/* --- AI operator responsive --- */

@media (max-width: 530px) {
	.ai-quota {
		flex-direction: column;
		align-items: flex-start;
	}
	.ai-quota-group {
		grid-template-columns: minmax(0, 1fr);
	}
	.ai-quota-group .ai-quota__text,
	.ai-quota-group .ai-quota__hint {
		grid-column: 1;
	}
	.ai-quota__bar {
		max-width: 100%;
		width: 100%;
	}
	.ai-article-row {
		flex-wrap: wrap;
		gap: 0.4rem;
	}
	.ai-article-row__title {
		flex: 1 1 100%;
	}
	.ai-article-row__meta {
		flex: 1 1 auto;
	}
	.ai-article-row__actions {
		flex: 0 0 auto;
	}
	.avatar-upload {
		flex-wrap: wrap;
	}
	.switch label {
		font-size: 0.8rem;
	}
}
/* --- Article editor (Toast UI Editor) --- */
#aiArticleEditorHost {
	/* контейнер TUI-редактора внутри модалки статьи */
	width: 100%;
}
#aiArticleModal .toastui-editor-defaultUI {
	border: 0.05rem solid var(--lightGrey);
	border-radius: 0.6rem;
	font-family: inherit;
}
#aiArticleModal .toastui-editor-defaultUI-toolbar {
	background: #fafafa;
	border-radius: 0.6rem 0.6rem 0 0;
}
#aiArticleModal .toastui-editor-ww-container .toastui-editor-contents {
	font-family: inherit;
	font-size: 0.9rem;
	color: var(--dark, #333);
}
#aiArticleModal .toastui-editor-contents p {
	font-size: 0.9rem;
}
#aiArticleModal .toastui-editor-contents h1,
#aiArticleModal .toastui-editor-contents h2,
#aiArticleModal .toastui-editor-contents h3 {
	border-bottom: none;
}
#aiArticleModal .toastui-editor-contents table {
	margin: 0.6rem 0;
}
#aiArticleModal .toastui-editor-mode-switch {
	display: none; /* hideModeSwitch дублируется на случай обновления TUI */
}
/* мобильная ширина: редактор во всю ширину модалки */
@media (max-width: 530px) {
	#aiArticleModal .modal__dialog {
		width: calc(100% - 2rem);
		padding: 1rem;
		margin-top: 4vh;
		max-width: calc(100vw - 4rem);
	}
	#aiArticleEditorHost .toastui-editor-defaultUI {
		border-radius: 0.4rem;
	}
}

/* --- Lead form --- */

.lead-form .settings-section {
	margin-bottom: 2rem;
	padding-bottom: 2rem;
	border-bottom: 0.05rem solid var(--lightGrey);
}
.lead-form .settings-section:last-child {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: none;
}
.lead-form .settings-section h4 {
	margin: 0 0 1rem 0;
	font-size: 1rem;
}

/* Две колонки  */
.lead-form-grid {
    display: grid;
    grid-template-columns: 1fr 0.6fr;
    gap: 4rem;
    margin-bottom: 2rem;
}
.lead-form-grid__col {
	min-width: 0;
}
.lead-form-grid__col .settings-section {
	margin-bottom: 1.5rem;
	padding-bottom: 1.5rem;
}
.lead-form-grid__col .settings-section:last-child {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: none;
}
.lead-target-select,
.lead-target-select .nice-select-dropdown,
#leadTargetOperator .nice-select,
#leadTargetOperator .nice-select-dropdown,
#notifyOperatorBlock .nice-select, 
#notifyOperatorBlock .nice-select-dropdown {
	width: 100%!important;
	max-width: 100%!important;
}


/* Шапка колонок полей */
.lead-field-header {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.3rem 0;
	border-bottom: 0.05rem solid var(--lightGrey);
}
.lead-field-header__col {
	font-size: 0.7rem;
	color: var(--greyText, #999);
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}
.lead-field-header__type {
	flex: 0 0 auto;
	width: 8rem;
	min-width: 160px;
}
.lead-field-header__label {
	flex: 1 1 auto;
	min-width: 0;
}
.lead-field-header__check {
	flex: 0 0 auto;
	width: 6rem;
	text-align: center;
}
.lead-field-header__del {
	flex: 0 0 auto;
	width: 2rem;
}

/* Динамические строки полей */
.lead-fields {
	display: flex;
	flex-direction: column;
	gap: 0;
	margin-bottom: 0.8rem;
}
.lead-field-row {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.4rem 0;
	border-bottom: 0.05rem solid var(--lightGrey);
}
.lead-field-row:last-child {
	border-bottom: none;
}
.lead-field-row__type-wrap {
	flex: 0 0 auto;
	width: 8rem;
	min-width: 160px;
}
.lead-field-row__type-wrap .nice-select {
	width: 100%;
}
.lead-field-row__label-wrap {
	flex: 1 1 auto;
	min-width: 0;
	width: -webkit-fill-available;
}
.lead-field-row__label {
	width: 100%;
	padding: 0.4rem 0.6rem;
	border: 0.05rem solid var(--formBorder);
	border-radius: 0.5rem;
	font-size: 0.8rem;
	font-family: var(--fontFamily), sans-serif;
}
.lead-field-row__check {
	flex: 0 0 auto;
	width: 6rem;
	display: flex;
	justify-content: center;
}
.lead-field-row__del-wrap {
	flex: 0 0 auto;
	width: 2rem;
	display: flex;
	justify-content: center;
}
.lead-field-row__del {
	padding: 0.3rem;
	cursor: pointer;
    color: #999;
    font-size: 18px;	
}
.lead-field-row__del:hover {
	color: #dd0029;
}
.lead-field-row__check .checkbox label {
	padding-left: unset;
	width: 0.8rem;
    height: 0.8rem;
	margin: auto;
}
/* Блоки цели */
.lead-target-block {
	margin-top: 0.8rem;
	padding-top: 0.8rem;
	border-top: 0.05rem dashed var(--lightGrey);
}

/* Ошибки */
.lead-form .form-group .error {
	color: #dd0029;
	font-size: 0.7rem;
	left: 0.25rem;
	display: none;
	position: absolute;
	bottom: -0.75rem;
}
.lead-form .form-group.haserror .error {
	display: block;
}

/* Адаптив: колонки друг под другом, строки полей — перенос */
@media (max-width: 768px) {
	.lead-form-grid {
		grid-template-columns: 1fr;
		gap: 1rem;
	}
}
@media (max-width: 530px) {
	.lead-field-header {
		display: none;
	}
	.lead-field-row {
		flex-wrap: wrap;
		gap: 0.4rem;
	}
	.lead-field-row__type-wrap {
		width: 100%;
	}
}

/* --- Leads --- */
.lead-detail {
	padding: 1rem;
}
.lead-detail__row {
	display: flex;
	gap: 0.5rem;
	padding: 0.4rem 0;
	border-bottom: 1px solid #eee;
}
.lead-detail__row:last-child {
	border-bottom: none;
}
.lead-detail__label {
	font-weight: 600;
	min-width: 120px;
	color: #555;
}
.lead-detail__value {
	word-break: break-word;
}
.btn-border.here {
	color: var(--greyText)!important;
    pointer-events: none;
	border: 1px solid #dadada!important;
}

/* ═══════════════════════════════════════════════════════════════════
   Инструменты ИИ (вкладка кабинета, template/js/ai-tools.js)
   ═══════════════════════════════════════════════════════════════════ */

/* --- список инструментов --- */
.ai-tools {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	width: 100%;
}
.ai-tool-item {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 0.6rem 0.8rem;
	border: 1px solid var(--lightGrey);
	border-radius: 0.5rem;
	background: #fff;
}
.ai-tool-item__main {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}
.ai-tool-item__name code {
	font-size: 0.85rem;
	color: var(--blueText);
	background: var(--lightGrey);
	border-radius: 0.25rem;
	padding: 0.1rem 0.35rem;
	word-break: break-all;
}
.ai-tool-item__desc {
	font-size: 0.78rem;
	color: var(--greyText);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.ai-tool-item__actions {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex: 0 0 auto;
}
.ai-tool-item__btn {
	font-size: 0.8rem;
	background: #fff;
	cursor: pointer;
	white-space: nowrap;
}
.ai-tool-item__switch label {
	min-width: 2.4rem;
}
.ai-tool-empty {
	padding: 1rem;
	border: 1px dashed var(--formBorder);
	border-radius: 0.5rem;
	font-size: 0.82rem;
	color: var(--greyText);
	text-align: center;
}
.ai-tool-off {
	text-align: left;
	padding: 1.2rem 1.4rem;
	display: grid;
	gap: 0.6rem;
}
.ai-tool-off__lead {
	margin: 0;
	font-size: 0.85rem;
	line-height: 1.5;
	color: var(--greyText);
}
.ai-tool-off__caption {
	margin: 0.4rem 0 0;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--blueText);
}
.ai-tool-off__list {
	margin: 0;
	padding-left: 1.2rem;
	font-size: 0.85rem;
	line-height: 1.5;
	color: var(--greyText);
}
.ai-tool-off__list li {
	margin: 0.15rem 0;
}
.ai-tool-off__quote {
	margin: 0;
	padding: 0.7rem 1rem;
	border-left: 3px solid var(--blueText);
	background: var(--lightGrey);
	border-radius: 0 0.4rem 0.4rem 0;
	font-size: 0.83rem;
	line-height: 1.5;
	color: var(--greyText);
}
.ai-tool-item__btn.process,
#aiToolSave.process,
#aiToolTestRun.process,
#aiToolDeleteConfirm.process {
	opacity: 0.55;
	pointer-events: none;
}

/* --- модалка редактора --- */
#aiToolModal .modal__dialog {
    width: min(900px, calc(100% - 6rem));
    max-height: 84vh;
    display: flex;
    flex-direction: column;
}
#aiToolModal .settings-section h4 {
	margin: 0 0 0.6rem;
}
/* ошибки полей — в потоке (модалка плотная, absolute перекрывал бы соседей) */
#aiToolModal .form-group .error {
	position: static;
	display: none;
	margin-top: 0.25rem;
}
#aiToolModal .form-group.haserror .error {
	display: block;
}
.ai-tool-modal__body {
	overflow-y: auto;
    height: 100%;
    max-width: 100%;
    display: flex;
    overflow-x: hidden;
    padding-right: 10px;
}
/* --- строки-редакторы (параметры / headers) --- */
.ai-tool-params,
.ai-tool-headers {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	width: 100%;
}
.ai-tool-line {
	display: grid;
	grid-template-columns: minmax(110px, 1fr) 110px auto minmax(140px, 1.6fr) 2rem;
	gap: 0.4rem;
	align-items: center;
}
.ai-tool-line--header {
	grid-template-columns: minmax(120px, 1fr) minmax(160px, 2fr) 2rem;
}
.ai-tool-line input[type="text"],
.ai-tool-line select {
	width: 100%;
	box-sizing: border-box;
	font-size: 0.82rem;
}
/* nice-select (bluzky/nice-select2) — селекты метода и типа параметра:
   <select class="nice"> внутри обёртки, сам селект скрыт (.hidden-select) */
.ai-tool-select-wrap {
	min-width: 0;
}
.ai-tool-select-wrap .nice-select {
	width: 100%;
	box-sizing: border-box;
	font-size: 0.82rem;
}
/* числовые поля таймаута/лимита ответа — как у остальных инпутов
   (глобальный селектор покрывает только text/tel/email/password) */
#aiToolModal input[type="number"] {
	width: 100%;
	box-sizing: border-box;
	border: 0.05rem solid var(--formBorder);
	border-radius: 0.5rem;
	padding: 0.7rem 1rem;
	font-size: 0.8rem;
	font-family: var(--fontFamily), sans-serif;
}
/* кнопки добавления строки (параметр / заголовок) */
#aiToolParamAdd,
#aiToolHeaderAdd {
	margin-top: 10px;
}
/* чекбокс «обязательный» — глобальный паттерн кабинета (.checkbox / .label описаны глобально);
   компактная ячейка — как .lead-field-row__check .checkbox label */
/* чекбокс «обязательный» — глобальный паттерн кабинета (.checkbox / .label описаны глобально);
   внутри div.checkbox теперь лежит подпись .checkbox_label (стили к ней — за пользователем).
   Контейнер делаем flex-строкой, чтобы подпись и квадрат стояли в одну линию по центру
   ячейки: без этого блочный .checkbox_label уводит квадрат на строку ниже и строка
   таблицы разъезжается по высоте. */
.ai-tool-line .checkbox {
	display: flex;
	align-items: center;
	gap: 0.4rem;
}
.ai-tool-line .checkbox label {
	padding-left: unset;
	width: 0.8rem;
	height: 0.8rem;
	margin: auto;
	flex: 0 0 auto;
}
/* кнопка удаления строки — разметка байт-в-байт из lead-form.js
   (.ai-tool-line__del-wrap ↔ .lead-field-row__del-wrap, .ai-tool-line__del ↔ .lead-field-row__del,
   .icon-btn глобальный: border none, прозрачный фон, flex-центрирование, 24px) */
.ai-tool-line__del-wrap {
	flex: 0 0 auto;
	width: 2rem;
	display: flex;
	justify-content: center;
}
.ai-tool-line__del {
	padding: 0.3rem;
	cursor: pointer;
	color: #999;
	font-size: 18px;
}
.ai-tool-line__del:hover {
	color: #dd0029;
}
.ai-tool-lines-empty {
	font-size: 0.78rem;
	color: var(--greyText);
	padding: 0.4rem 0;
}

/* --- блок «Тест» --- */
.ai-tool-test-result {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 0.75rem;
	border: 1px solid var(--lightGrey);
	border-radius: 0.5rem;
	background: #fff;
	font-size: 0.8rem;
}
.ai-tool-test__status {
	font-weight: 600;
}
.ai-tool-test__status--ok {
	color: #1e8e3e;
}
.ai-tool-test__status--err {
	color: #dd0029;
}
.ai-tool-test__pending {
	color: var(--greyText);
}
.ai-tool-test__row {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	padding: 0;
}
.ai-tool-test__label {
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: var(--greyText);
}
.ai-tool-test__value {
	word-break: break-all;
}
pre.ai-tool-test__value {
	margin: 0;
	padding: 0.4rem;
	background: var(--lightGrey);
	border-radius: 0.3rem;
	max-height: 12rem;
	overflow: auto;
	white-space: pre-wrap;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.75rem;
}

/* --- адаптив --- */
@media (max-width: 760px) {
	.ai-tool-item {
		flex-wrap: wrap;
	}
	.ai-tool-item__actions {
		width: 100%;
		justify-content: flex-end;
	}
	.ai-tool-line,
	.ai-tool-line--header {
		grid-template-columns: 1fr 1fr 2rem;
	}
	.ai-tool-line__del-wrap {
		grid-row: span 3;
		height: 100%;
		align-items: center;
	}
	.ai-tool-line--header .ai-tool-line__del-wrap {
		grid-row: span 2;
	}
}
.helper {
	display: inline;
    position: relative;
    top: -5px;
    right: -1px;
    cursor: pointer;
    font-size: 1rem;
    color: var(--blueText);
}

/* article-fetch: поле «Получить с сайта» в модалке статьи БЗ */
.article-fetch {
	display: flex;
	gap: 10px;
}
.article-fetch input {
	flex: 1;
	min-width: 0;
}
.article-fetch .btn-border {
	white-space: nowrap;
	flex-shrink: 0;
}

/* article-fetch адаптив */
@media (max-width: 530px) {
	.article-fetch {
		flex-direction: row;
		align-items: stretch;
	}
	.article-fetch .btn-border {
		max-width: none;
	}
}

.btn-border.process {
	transition: 0s;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3c?xml version='1.0' encoding='UTF-8' standalone='no'?%3e%3csvg xmlns:svg='http://www.w3.org/2000/svg' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' version='1.0' width='64px' height='64px' viewBox='0 0 128 128' xml:space='preserve'%3e%3cg%3e%3cpath fill='%230008b6' d='M109.25 55.5h-36l12-12a29.54 29.54 0 0 0-49.53 12H18.75A46.04 46.04 0 0 1 96.9 31.84l12.35-12.34v36zm-90.5 17h36l-12 12a29.54 29.54 0 0 0 49.53-12h16.97A46.04 46.04 0 0 1 31.1 96.16L18.74 108.5v-36z'/%3e%3canimateTransform attributeName='transform' type='rotate' from='0 64 64' to='360 64 64' dur='1120ms' repeatCount='indefinite'%3e%3c/animateTransform%3e%3c/g%3e%3c/svg%3e");
    background-size: 1rem;
    background-position: center;
    background-repeat: no-repeat;
    color: transparent;
    pointer-events: none;	
}
/* rag-qdrant (T-07): строка «Объём базы: N симв. из M» под статусом индекса */
.ai-kb-volume {
	font-size: 0.8rem;
	color: var(--greyText);
	padding: 0.2rem 0.6rem;
}

/* --- kb-api: блок API-ключа базы знаний (ресурс 10, «Подключение») --- */
.copy-row--api .copy-row__value{
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.9rem;
	white-space: nowrap;
}
.copy-row--api .kb-api__regen{
	flex-shrink: 0;
}

/* --- kb-search: поиск по статьям БЗ (ресурс 14) --- */
.ai-kb-search__form {
	display: flex;
	gap: 10px;
	align-items: center;
}
.ai-kb-search__input {
	flex: 1;
	min-width: 0;
}
.ai-kb-search__form .btn-border {
	white-space: nowrap;
	flex-shrink: 0;
}
/* пустая выдача сниппета (пусто/ничего не найдено) */
.ai-articles-empty {
	padding: 1rem 0;
	color: var(--greyText);
	font-size: 0.85rem;
}
/* одна страница результатов — pdoPage рисует пустой <ul>, прячем */
#pdopageKb .pagination ul:empty {
	display: none;
}
/* адаптив: на узких экранах кнопки уходят под поле */
@media (max-width: 530px) {
	.ai-kb-search__form {
		flex-direction: column;
		align-items: stretch;
	}
	.ai-kb-search__form .btn-border {
		max-width: none;
	}
}

/* ── test-mode: строка заголовка блока «Уведомления» (ресурс 10) —
   слева «Уведомления», справа тумблер «Тестовый режим» + ссылка на сайт ── */
.notify-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	margin: 2rem 0;
}
.notify-head h4 {
	width: auto;
	margin: 0;
}
.notify-test {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.35rem;
}
.notify-test__link {
	font-size: 0.85rem;
	color: var(--blueText);
}
.h4 .chat-comment, 
.page-title .chat-comment {
	color: var(--greyText);
    font-size: 14px;
    text-transform: none;
    margin-left: 4px;
}
.history-comment {
	color: var(--greyText);
    font-size: 12px;
    text-transform: none;
    margin-top: -3px;
}
