/**
 * Экспертная заявка: только секции, чипы и колонки квалификации.
 * Базовая типографика, поля, кнопки, чекбоксы — из add_new_book/style.css
 */

/* Шире формы «новая книга» (720px): макет эксперта 926px */
body.expert_application .add_new_book_page .add_new_book_card_wrap {
	max-width: 926px;
}

/* Акцентная звёздочка у обязательных полей */
.add_new_book_form.expert_application_form .expert_req_star {
	color: #A4DAD5;
	font-weight: 600;
	margin-left: 0.2em;
	white-space: nowrap;
}

.add_new_book_form.expert_application_form .expert_chips_label .expert_req_star {
	margin-left: 0.15em;
}

.add_new_book_form.expert_application_form .expert_passport_caption .expert_req_star {
	margin-left: 0.15em;
}

.add_new_book_form.expert_application_form .expert_qual_col_title .expert_req_star {
	margin-left: 0.15em;
}

.add_new_book_form.expert_application_form .add_new_book_consent_label .expert_req_star {
	font-size: 0.95em;
	margin-left: 0.2em;
}

/* В интерфейсе формы отключаем выделение, кроме текстового ввода */
.add_new_book_form.expert_application_form,
.add_new_book_form.expert_application_form * {
	-webkit-user-select: none;
	user-select: none;
}

.add_new_book_form.expert_application_form input[type="text"],
.add_new_book_form.expert_application_form input[type="email"],
.add_new_book_form.expert_application_form input[type="tel"],
.add_new_book_form.expert_application_form input[type="number"],
.add_new_book_form.expert_application_form input[type="date"],
.add_new_book_form.expert_application_form input[type="search"],
.add_new_book_form.expert_application_form input[type="url"],
.add_new_book_form.expert_application_form input[type="password"],
.add_new_book_form.expert_application_form textarea {
	-webkit-user-select: text;
	user-select: text;
}

/* Видимые лейблы над полями (макет), переопределяем скрытие из add_new_book */
.add_new_book_form.expert_application_form .add_new_book_field > label:not(.add_new_book_upload_label) {
	position: static;
	width: auto;
	height: auto;
	overflow: visible;
	clip: auto;
	clip-path: none;
	white-space: normal;
	border: 0;
	display: block;
	font-size: 16px;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.95);
	margin-bottom: 8px;
	line-height: 1.3;
}

/* Строка: дата ~1/3, email ~2/3; телефон — ~1/3 ширины */
.add_new_book_form.expert_application_form .expert_row_date_email {
	display: grid;
	grid-template-columns: 1fr 2fr;
	gap: 12px;
	margin-bottom: 14px;
	align-items: start;
}

.add_new_book_form.expert_application_form .expert_row_phone {
	display: grid;
	grid-template-columns: 1fr 2fr;
	gap: 12px;
	margin-bottom: 14px;
	align-items: start;
}

.add_new_book_form.expert_application_form .expert_row_phone .add_new_book_field {
	max-width: 100%;
}

/* Вводы, которых нет в базовой форме «новая книга» */
.add_new_book_page .expert_application_form input[type="number"],
.add_new_book_page .expert_application_form textarea,
.add_new_book_page .expert_application_form input[type="number"]:valid,
.add_new_book_page .expert_application_form input[type="number"]:invalid,
.add_new_book_page .expert_application_form textarea:valid,
.add_new_book_page .expert_application_form textarea:invalid {
	width: 100%;
	padding: 16px 24px;
	margin-bottom: 0;
	background: #0e0e0e !important;
	border: none !important;
	border-width: 0 !important;
	border-style: none !important;
	border-color: transparent !important;
	border-image: none !important;
	border-radius: 16px;
	caret-color: #fff;
	font-family: var(--dbooks-field-font, 'Rubik', sans-serif);
	font-size: var(--dbooks-field-size, 14px);
	font-weight: 500;
	box-sizing: border-box;
	-webkit-appearance: none;
	appearance: none;
}

.add_new_book_page .expert_application_form input[type="number"]:user-valid,
.add_new_book_page .expert_application_form input[type="number"]:user-invalid,
.add_new_book_page .expert_application_form textarea:user-valid,
.add_new_book_page .expert_application_form textarea:user-invalid {
	border: none !important;
	border-width: 0 !important;
	border-style: none !important;
	border-color: transparent !important;
	border-image: none !important;
	background: #0e0e0e !important;
}

.add_new_book_page .expert_application_form input[type="number"] {
	height: 48px;
}

/* Autofill: без тяжёлого inset — иначе на скруглении видны светлые вертикальные линии (как в add_new_book) */
.add_new_book_form.expert_application_form input:-webkit-autofill,
.add_new_book_form.expert_application_form input:-webkit-autofill:hover,
.add_new_book_form.expert_application_form input:-webkit-autofill:active,
.add_new_book_form.expert_application_form textarea:-webkit-autofill,
.add_new_book_form.expert_application_form textarea:-webkit-autofill:hover,
.add_new_book_form.expert_application_form textarea:-webkit-autofill:active {
	-webkit-box-shadow: none !important;
	box-shadow: none !important;
	-webkit-text-fill-color: #fff !important;
	caret-color: #fff;
	background-color: #0e0e0e !important;
	background-image: none !important;
	border: none !important;
	transition: background-color 99999s ease-out 0s !important;
}

.add_new_book_form.expert_application_form input:-webkit-autofill:focus,
.add_new_book_form.expert_application_form input:-webkit-autofill:focus-visible,
.add_new_book_form.expert_application_form textarea:-webkit-autofill:focus,
.add_new_book_form.expert_application_form textarea:-webkit-autofill:focus-visible {
	-webkit-box-shadow: 0 0 0 2px #a4dad5d4 !important;
	box-shadow: 0 0 0 2px #a4dad5d4 !important;
	-webkit-text-fill-color: #fff !important;
	caret-color: #fff;
	background-color: #0e0e0e !important;
	background-image: none !important;
	border: none !important;
	transition: background-color 99999s ease-out 0s !important;
}

.add_new_book_form.expert_application_form input:autofill,
.add_new_book_form.expert_application_form input:autofill:hover,
.add_new_book_form.expert_application_form input:autofill:active,
.add_new_book_form.expert_application_form textarea:autofill,
.add_new_book_form.expert_application_form textarea:autofill:hover,
.add_new_book_form.expert_application_form textarea:autofill:active {
	-webkit-box-shadow: none !important;
	box-shadow: none !important;
	-webkit-text-fill-color: #fff !important;
	caret-color: #fff;
	background-color: #0e0e0e !important;
	background-image: none !important;
	border: none !important;
	color: #fff !important;
	transition: background-color 99999s ease-out 0s !important;
}

.add_new_book_form.expert_application_form input:autofill:focus,
.add_new_book_form.expert_application_form input:autofill:focus-visible,
.add_new_book_form.expert_application_form textarea:autofill:focus,
.add_new_book_form.expert_application_form textarea:autofill:focus-visible {
	-webkit-box-shadow: 0 0 0 2px #a4dad5d4 !important;
	box-shadow: 0 0 0 2px #a4dad5d4 !important;
	-webkit-text-fill-color: #fff !important;
	caret-color: #fff;
	background-color: #0e0e0e !important;
	background-image: none !important;
	border: none !important;
	color: #fff !important;
	transition: background-color 99999s ease-out 0s !important;
}

.stage .add_new_book_form.expert_application_form input[type="text"],
.stage .add_new_book_form.expert_application_form input[type="email"],
.stage .add_new_book_form.expert_application_form input[type="tel"],
.stage .add_new_book_form.expert_application_form input[type="url"],
.stage .add_new_book_form.expert_application_form input[type="password"],
.stage .add_new_book_form.expert_application_form input[type="search"],
.stage .add_new_book_form.expert_application_form input[type="number"],
.stage .add_new_book_form.expert_application_form input[type="date"],
.stage .add_new_book_form.expert_application_form textarea {
	background: #0e0e0e !important;
	background-color: #0e0e0e !important;
	background-image: none !important;
	border: none !important;
}

.add_new_book_form.expert_application_form input::spelling-error,
.add_new_book_form.expert_application_form textarea::spelling-error,
.add_new_book_form.expert_application_form input::grammar-error,
.add_new_book_form.expert_application_form textarea::grammar-error {
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
	text-decoration-line: underline;
	text-decoration-style: wavy;
	text-decoration-color: rgba(255, 110, 110, 0.95);
	text-decoration-skip-ink: none;
}

.add_new_book_page .expert_application_form textarea {
	min-height: 120px;
	resize: vertical;
	line-height: 1.45;
	font-weight: 400;
}

/* placeholder: типографика в add_new_book (.add_new_book_form textarea::placeholder, …) */

.add_new_book_page .expert_application_form input[type="number"]:focus,
.add_new_book_page .expert_application_form textarea:focus {
	outline: none;
	border: none !important;
	box-shadow: 0 0 0 2px #a4dad5d4;
}

/* Две строки под H1: один шрифт (Rubik), в одной полосе с заголовком #111 */
body.expert_application .expert_page_title_block {
	background: #111111;
	border-radius: 32px 32px 0 0;
	position: relative;
	top: 30px;
}

body.expert_application .expert_page_title_block .add_new_book_title {
	background: transparent;
	border-radius: 0;
	padding: 24px 32px 44px;
	top: 0;
}

/* Вводный текст — внутри .add_new_book_card (отступы по горизонтали даёт padding карточки) */
body.expert_application .add_new_book_card .expert_page_lead {
	padding: 28px 0 28px;
	margin: 0;
}

body.expert_application .expert_page_lead_line {
	margin: 0 0 10px;
	font-family: 'Rubik', sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.75);
}

body.expert_application .expert_page_lead_line:last-child {
	margin-bottom: 0;
}

/* Форма сразу под вводным текстом — вертикальный зазор даёт .expert_page_lead */
body.expert_application .add_new_book_card > .expert_application_form {
	padding-top: 0;
}

@media (max-width: 768px) {
	body.expert_application .expert_page_title_block .add_new_book_title {
		padding: 20px 24px 36px;
	}

	body.expert_application .add_new_book_card .expert_page_lead {
		padding: 24px 0 24px;
	}
}

@media (max-width: 480px) {
	body.expert_application .expert_page_title_block .add_new_book_title {
		padding: 18px 20px 32px;
	}

	body.expert_application .add_new_book_card .expert_page_lead {
		padding: 20px 0 20px;
	}

	body.expert_application .expert_page_lead_line {
		font-size: 14px;
	}
}

/* Все блоки формы — панели (как фон карточки add_new_book) */
.expert_application_form .expert_section {
	margin: 0 0 32px;
	padding: 24px 20px;
	background: #252525;
	border-radius: 32px;
	border-bottom: none;
	margin-left: -32px;
	margin-right: -32px;
}

/* Последняя панель — чуть больший отступ перед чекбоксами */
.expert_application_form .expert_section:last-of-type {
	margin-bottom: 28px;
}

.expert_section_head {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 32px;
}

.expert_section_icon {
	color: #a4dad5;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.expert_section_icon svg {
	width: 34px;
	height: 34px;
}

.expert_section_title {
	margin: 0;
	font-size: 24px;
	font-weight: 600;
	color: #fff;
	line-height: 1.3;
}

.expert_section_title_note {
	font-weight: 400;
	font-size: 0.88em;
	color: rgba(255, 255, 255, 0.55);
}

.expert_section_note {
	margin-top: -8px;
	margin-bottom: 16px;
}

/* Подтверждение личности: подписи, подсказки под загрузкой, дисклеймер */
/* Верхняя строка под заголовком и подсказки под кнопками — одна типографика (как на макете) */
.expert_identity_note_top,
.expert_passport_hint {
	font-family: 'Rubik', sans-serif;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.5);
}

.expert_identity_note_top {
	margin: 0 0 16px;
}

.expert_passport_row {
	align-items: start;
}

.expert_passport_caption {
	display: block;
	font-size: 14px;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.8);
	margin-bottom: 10px;
	line-height: 1.3;
}

.expert_passport_hint {
	margin: 10px 0 0;
}

.expert_identity_disclaimer {
	padding: 0;
	font-size: 14px;
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.92);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Чипы уровня / активности — в стиле фокуса полей add_new_book */
.expert_chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 14px;
}

.expert_chips_check {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px 12px;
	margin: 0 0 24px;
	align-items: stretch;
	justify-items: stretch;
}

.expert_chip {
	display: inline-flex;
	align-items: center;
	cursor: pointer;
	margin: 0;
}

.expert_chip input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
	width: 0;
	height: 0;
}

.expert_chips_check .expert_chip {
	display: flex;
	width: 100%;
	min-width: 0;
}

.expert_chip span {
	display: inline-block;
	min-height: 56px;
	padding: 12px 16px;
	border-radius: 16px;
	background: #0e0e0e;
	color: rgba(255, 255, 255, 0.55);
	font-size: 14px;
	line-height: 1.2;
	border: none;
	box-sizing: border-box;
	text-align: left;
	transition: box-shadow 0.15s, color 0.15s;
}

/* Типизированные selectable-label (radio / checkbox) */
.expert_chips_check .expert_chip span {
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	gap: 10px;
	width: 100%;
	height: 56px;
	min-height: 56px;
	max-height: 56px;
	padding: 0 12px;
	overflow-wrap: anywhere;
	word-wrap: break-word;
	overflow: hidden;
}

.expert_chip_radio span {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.expert_chip_radio span::before {
	content: '';
	flex: 0 0 16px;
	width: 16px;
	height: 16px;
	border-radius: 4px;
	border: none;
	background: rgba(255, 255, 255, 0.03);
	box-sizing: border-box;
	transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.expert_chips_check .expert_chip span::before {
	content: '';
	flex: 0 0 16px;
	width: 16px;
	height: 16px;
	border-radius: 4px;
	border: none;
	background: rgba(255, 255, 255, 0.03);
	box-sizing: border-box;
	transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.expert_chip_radio input:checked + span,
.expert_chips_check .expert_chip input:checked + span {
	box-shadow: 0 0 0 2px #a4dad5d4;
	color: rgba(255, 255, 255, 0.55);
}

.expert_chip_radio input:checked + span::before {
	content: '✓';
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 700;
	color: #0b0b0b;
	background: #a4dad5;
	border-color: #a4dad5;
	line-height: 1;
}

.expert_chips_check .expert_chip input:checked + span::before {
	content: '✓';
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 700;
	color: #0b0b0b;
	background: #a4dad5;
	border-color: #a4dad5;
	line-height: 1;
}

/* Единая типографика подзаголовков как у label */
.expert_chips_label,
.expert_section_professional .expert_professional_chips_heading,
.expert_qual_col_title {
	font-size: 16px;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.95);
	line-height: 1.3;
}

/* Подпись над чипами */
.expert_chips_label {
	margin: 8px 0 12px;
}

/* --- Профессиональный профиль: отступы и сетка как в макете --- */
/* Два поля в ряд: равная ширина, зазор 16px, между рядами 24px */
.expert_section_professional .expert_professional_row_2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-bottom: 24px;
	align-items: start;
}

.expert_section_professional .expert_professional_row_2 .add_new_book_field {
	margin-bottom: 0;
}

/* Полная ширина: «Области экспертизы» */
.expert_section_professional .add_new_book_field.expert_professional_field_expertise {
	margin-bottom: 24px;
}

/* Подпись «Уровень квалификации» — 12px до сетки чипов */
.expert_section_professional .expert_professional_chips_heading {
	margin: 0 0 12px;
}

/* Сетка 4×2, высота чипа 56px (макет) */
.expert_section_professional .expert_chips.expert_professional_qual_grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px 12px;
	margin: 0 0 24px;
	align-items: stretch;
	justify-items: stretch;
}

/* Квалификация: только модификатор .expert_chip_qual меняет layout label */
.expert_section_professional .expert_professional_qual_grid .expert_chip.expert_chip_qual {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: flex-start;
	width: 100%;
	min-width: 0;
	margin: 0;
	box-sizing: border-box;
}

.expert_section_professional .expert_professional_qual_grid .expert_chip.expert_chip_qual span {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	width: 100%;
	height: 56px;
	min-height: 56px;
	max-height: 56px;
	padding: 0 12px;
	/* как у .add_new_book_form input::placeholder */
	color: rgba(255, 255, 255, 0.55);
	overflow-wrap: anywhere;
	word-wrap: break-word;
	overflow: hidden;
}

/* Уточнение при выборе «Другое» (квалификация/вид деятельности) */
.expert_section .expert_other_detail_wrap {
	margin: -12px 0 24px;
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	pointer-events: none;
	transform: translateY(-6px);
	transition: max-height 0.28s ease, opacity 0.22s ease, transform 0.22s ease;
}

.expert_section .expert_other_detail_wrap.is-open {
	max-height: 220px;
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
}

/* Для анимируемого блока используем внутреннюю обводку, чтобы не обрезалась overflow */
.expert_section .expert_other_detail_wrap textarea:focus {
	box-shadow: inset 0 0 0 2px #a4dad5d4;
}

/* Нижний ряд: ~35% / 35% / 30%, зазор 16px */
.expert_section_professional .expert_professional_row_3 {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 7fr) minmax(0, 6fr);
	gap: 16px;
	margin-bottom: 0;
	align-items: start;
}

.expert_section_professional .expert_professional_row_3 .add_new_book_field {
	margin-bottom: 0;
}

@media (max-width: 768px) {
	.expert_section_professional .expert_professional_row_2,
	.expert_section_professional .expert_professional_row_3 {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.expert_section_professional .expert_chips.expert_professional_qual_grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.expert_chips_check {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 480px) {
	.expert_section_professional .expert_chips.expert_professional_qual_grid {
		grid-template-columns: 1fr;
	}

	.expert_chips_check {
		grid-template-columns: 1fr;
	}
}

/* Квалификация: три колонки */
.expert_qual_columns {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	align-items: stretch;
	gap: 12px;
}

/* Колонка — колонка flex: нижние подписи можно прижать при необходимости */
.expert_qual_col {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	min-width: 0;
	height: 100%;
}

/*
 * Заголовки разной длины (2 строки в средней колонке) сдвигали кнопки.
 * Резервируем высоту под 2 строки — «Загрузить» выравнивается по горизонтали.
 */
.expert_qual_col_title {
	margin: 0 0 12px;
	min-height: calc(1.35em * 2);
	display: flex;
	align-items: flex-start;
	text-align: left;
}

.expert_qual_upload_field {
	margin-bottom: 0 !important;
}

.expert_qual_upload_field .add_new_book_upload_label {
	padding: 12px 16px;
	font-size: 13px;
}

.expert_file_hint {
	font-size: 12px;
	color: rgba(255, 255, 255, 0.55);
	margin: 8px 0 0;
	min-height: 0;
	line-height: 1.35;
}

.expert_file_list {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-top: 8px;
}

.expert_file_item {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 10px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.04);
}

.expert_file_item_name {
	flex: 1;
	min-width: 0;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.82);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.expert_file_item_size {
	flex-shrink: 0;
	font-size: 11px;
	color: rgba(255, 255, 255, 0.55);
}

.expert_file_remove_btn {
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	border: none;
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.08);
	color: rgba(255, 255, 255, 0.82);
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
}

.expert_file_remove_btn:hover {
	background: rgba(255, 255, 255, 0.14);
}

.expert_file_error {
	margin: 8px 0 0;
	min-height: 0;
	font-size: 12px;
	line-height: 1.35;
	color: #ff8f8f;
}

.expert_qual_footnote {
	margin-top: auto;
	padding-top: 8px;
	font-family: 'Rubik', sans-serif;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.35;
	color: rgba(255, 255, 255, 0.5);
	text-align: left;
}

#expert_submit_btn {
	background: #A4DAD5;
	color: #060606;
}

#expert_submit_btn:hover:not(:disabled) {
	background: #8fc9c3;
}

.expert_test_fill_btn {
	background: transparent;
	color: #a4dad5;
	box-shadow: inset 0 0 0 2px #a4dad5;
}

.expert_test_fill_btn:hover:not(:disabled) {
	background: rgba(164, 218, 213, 0.12);
}

.expert_viewer_link_btn {
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.expert_test_fill_link_wrap {
	margin-top: 10px;
}

.expert_test_fill_link {
	background: none;
	border: 0;
	padding: 0;
	font: inherit;
	cursor: pointer;
}

.expert_viewer_compact_heading {
	margin: 0 0 4px;
	padding-top: 28px;
	font-family: 'Rubik', sans-serif;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
	color: rgba(255, 255, 255, 0.88);
	letter-spacing: 0.02em;
}

.add_new_book_card .expert_viewer_compact_heading + .add_new_book_intro {
	padding-top: 0;
	margin-top: 0;
}

.expert_submissions_viewer_section {
	margin-top: 20px;
}

.expert_submission_files_empty {
	margin: 10px 0 0;
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.55);
}

.expert_submissions_viewer_toolbar {
	display: flex;
	gap: 12px;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 14px;
}

.expert_submissions_count {
	font-size: 13px;
	color: rgba(255, 255, 255, 0.65);
}

.expert_submissions_search_input {
	max-width: 340px;
	width: 100%;
	height: 42px;
	padding: 0 14px;
	border-radius: 12px;
	box-sizing: border-box;
	border: none;
	background: #0e0e0e !important;
	background-color: #0e0e0e !important;
	background-image: none !important;
	font-family: 'Rubik', sans-serif;
	font-size: 14px;
	-webkit-appearance: none;
	appearance: none;
	caret-color: #fff;
}

/* Перебиваем .stage input из colors/style.css при равной специфичности */
body.stage .expert_submissions_search_input {
	background: #0e0e0e !important;
	background-color: #0e0e0e !important;
	background-image: none !important;
}

.expert_submissions_search_input:not(:placeholder-shown) {
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
}

.expert_submissions_search_input:placeholder-shown {
	color: rgba(255, 255, 255, 0.55) !important;
	-webkit-text-fill-color: rgba(255, 255, 255, 0.55) !important;
}

.expert_submissions_search_input::-webkit-search-decoration,
.expert_submissions_search_input::-webkit-search-cancel-button {
	-webkit-appearance: none;
	appearance: none;
}

.expert_submissions_search_input::placeholder {
	color: rgba(255, 255, 255, 0.55) !important;
	opacity: 1;
}

.expert_submissions_search_input::-webkit-input-placeholder {
	color: rgba(255, 255, 255, 0.55) !important;
	opacity: 1;
}

.expert_submissions_search_input::-moz-placeholder {
	color: rgba(255, 255, 255, 0.55) !important;
	opacity: 1;
}

.expert_submissions_search_input:-ms-input-placeholder {
	color: rgba(255, 255, 255, 0.55) !important;
	opacity: 1;
}

.expert_submissions_search_input:-webkit-autofill,
.expert_submissions_search_input:-webkit-autofill:hover {
	-webkit-box-shadow: none !important;
	box-shadow: none !important;
	-webkit-text-fill-color: #fff !important;
	background-color: #0e0e0e !important;
	background-image: none !important;
	border: none !important;
	transition: background-color 99999s ease-out 0s !important;
}

.expert_submissions_search_input:-webkit-autofill:focus,
.expert_submissions_search_input:-webkit-autofill:focus-visible {
	-webkit-box-shadow: 0 0 0 2px #a4dad5d4 !important;
	box-shadow: 0 0 0 2px #a4dad5d4 !important;
	-webkit-text-fill-color: #fff !important;
	background-color: #0e0e0e !important;
	background-image: none !important;
	border: none !important;
	transition: background-color 99999s ease-out 0s !important;
}

.expert_submissions_search_input:focus:not(:placeholder-shown),
.expert_submissions_search_input:focus-visible:not(:placeholder-shown) {
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
}

.expert_submissions_search_input:focus:placeholder-shown,
.expert_submissions_search_input:focus-visible:placeholder-shown {
	color: rgba(255, 255, 255, 0.55) !important;
	-webkit-text-fill-color: rgba(255, 255, 255, 0.55) !important;
}

.expert_submissions_search_input:focus {
	outline: none;
	box-shadow: 0 0 0 2px #a4dad5d4;
}

.expert_submissions_empty {
	margin: 0;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.65);
}

.expert_submissions_col_actions {
	width: 1%;
	white-space: nowrap;
}

.expert_submissions_cell_actions {
	text-align: right;
	vertical-align: middle;
}

.expert_submissions_actions {
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
}

.expert_submission_view_btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 1px solid rgba(164, 218, 213, 0.45);
	border-radius: 10px;
	background: rgba(164, 218, 213, 0.1);
	color: #a4dad5;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.expert_submission_view_btn:hover {
	background: rgba(164, 218, 213, 0.22);
	color: #c5ebe8;
	border-color: rgba(164, 218, 213, 0.65);
	box-shadow: 0 0 12px rgba(164, 218, 213, 0.15);
}

.expert_submission_view_btn:focus-visible {
	outline: 2px solid rgba(164, 218, 213, 0.85);
	outline-offset: 2px;
}

.expert_submission_delete_btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 1px solid rgba(229, 83, 83, 0.45);
	border-radius: 10px;
	background: rgba(229, 83, 83, 0.14);
	color: #e55353;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.expert_submission_delete_btn:hover {
	background: rgba(229, 83, 83, 0.28);
	color: #ff6b6b;
	border-color: rgba(255, 120, 120, 0.55);
	box-shadow: 0 0 12px rgba(229, 83, 83, 0.2);
}

.expert_submission_delete_btn:focus-visible {
	outline: 2px solid rgba(229, 83, 83, 0.85);
	outline-offset: 2px;
}

.expert_submission_delete_btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

/* Модалка просмотра заявки: ширина 1135px (узкие экраны — 92vw) */
.expert_submission_modal_box {
	position: relative;
	width: 100%;
	max-width: min(92vw, 1135px);
	max-height: min(88vh, 900px);
	overflow: auto;
	margin: 0 auto;
	padding: 24px 28px 26px;
	box-sizing: border-box;
	background: #1a1a1a;
	border-radius: 16px;
	color: rgba(255, 255, 255, 0.92);
	font-family: 'Rubik', sans-serif;
	font-size: 14px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
}

/* airModal: ширина блока модалки заявки */
.air-modal-overlay:has(.expert_submission_modal_box) .expert_submission_modal_box {
	width: min(92vw, 1135px);
	max-width: 100%;
	box-sizing: border-box;
}

/* Скроллбары модалки заявки — в одном стиле с legal / тёмной темой */
.expert_submission_modal_box::-webkit-scrollbar,
.expert_submission_payload_pre::-webkit-scrollbar {
	width: 6px;
	height: 6px;
}

.expert_submission_modal_box::-webkit-scrollbar-track,
.expert_submission_payload_pre::-webkit-scrollbar-track {
	background: transparent;
	margin: 10px 0;
}

.expert_submission_modal_box::-webkit-scrollbar-thumb,
.expert_submission_payload_pre::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.22);
	border-radius: 3px;
}

.expert_submission_modal_box::-webkit-scrollbar-thumb:hover,
.expert_submission_payload_pre::-webkit-scrollbar-thumb:hover {
	background: rgba(164, 218, 213, 0.45);
}

.expert_submission_modal_box::-webkit-scrollbar-thumb:active,
.expert_submission_payload_pre::-webkit-scrollbar-thumb:active {
	background: rgba(164, 218, 213, 0.58);
}

/* Внешний скролл оверлея airModal */
.air-modal-overlay:has(.expert_submission_modal_box) {
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
}

.air-modal-overlay:has(.expert_submission_modal_box)::-webkit-scrollbar {
	width: 6px;
	height: 6px;
}

.air-modal-overlay:has(.expert_submission_modal_box)::-webkit-scrollbar-track {
	background: transparent;
	margin: 8px 0;
}

.air-modal-overlay:has(.expert_submission_modal_box)::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.22);
	border-radius: 3px;
}

.air-modal-overlay:has(.expert_submission_modal_box)::-webkit-scrollbar-thumb:hover {
	background: rgba(164, 218, 213, 0.45);
}

.air-modal-overlay:has(.expert_submission_modal_box)::-webkit-scrollbar-thumb:active {
	background: rgba(164, 218, 213, 0.58);
}

.expert_submission_modal_box .expert_submission_modal_close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	margin: 0;
	padding: 0;
	font-size: 1.85rem;
	font-weight: 300;
	line-height: 1;
	letter-spacing: 0;
	color: rgba(255, 255, 255, 0.65);
	text-decoration: none;
	background: none;
	border: none;
	box-shadow: none;
	box-sizing: border-box;
	transition: color 0.2s ease, transform 0.15s ease;
}

.expert_submission_modal_box .expert_submission_modal_close:hover {
	color: rgba(164, 218, 213, 0.95);
	transform: scale(1.06);
}

.expert_submission_modal_box .expert_submission_modal_close:active {
	transform: scale(0.96);
}

.expert_submission_modal_box .expert_submission_modal_close:focus-visible {
	outline: 2px solid rgba(164, 218, 213, 0.65);
	outline-offset: 4px;
}

.expert_submission_modal_head {
	margin: 0 0 20px;
	padding: 0 56px 18px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.expert_submission_modal_title {
	margin: 0;
	font-size: 1.35rem;
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.25;
	color: #fff;
}

.expert_submission_modal_sub {
	margin: 10px 0 0;
	padding: 0;
	font-size: 14px;
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.68);
}

.expert_submission_modal_sub_sep {
	margin: 0 0.5em;
	color: rgba(255, 255, 255, 0.35);
}

.expert_submission_modal_section {
	margin: 0;
	padding: 20px 0 0;
	border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.expert_submission_modal_section:first-of-type {
	padding-top: 0;
	border-top: none;
}

.expert_submission_modal_section_title {
	margin: 0 0 16px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #a4dad5;
	line-height: 1.3;
}

.expert_submission_modal_field_groups {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.expert_submission_modal_field_group {
	padding: 14px 16px 16px;
	border-radius: 12px;
	background: rgba(0, 0, 0, 0.28);
	border: 1px solid rgba(255, 255, 255, 0.09);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.expert_submission_modal_field_group_head {
	margin: 0 0 12px;
	padding-bottom: 10px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: rgba(164, 218, 213, 0.95);
	line-height: 1.35;
}

.expert_submission_modal_group_plain {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.92);
	word-wrap: break-word;
	overflow-wrap: anywhere;
}

.expert_submission_modal_fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px 24px;
}

.expert_submission_modal_fields--single {
	grid-template-columns: 1fr;
}

.expert_submission_modal_field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.expert_submission_modal_field--wide {
	grid-column: 1 / -1;
}

.expert_submission_modal_k {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.42);
	line-height: 1.3;
}

.expert_submission_modal_v {
	font-size: 14px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.94);
	word-wrap: break-word;
	overflow-wrap: anywhere;
}

.expert_submission_modal_prose {
	margin: 0;
	padding: 14px 16px;
	border-radius: 12px;
	background: rgba(0, 0, 0, 0.28);
	border: 1px solid rgba(255, 255, 255, 0.06);
	font-size: 14px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.9);
}

.expert_submission_modal_consents {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px 20px;
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
}

.expert_submission_modal_consents li {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 12px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.06);
	font-size: 13px;
	line-height: 1.35;
}

.expert_submission_modal_consent_k {
	color: rgba(255, 255, 255, 0.55);
	font-weight: 500;
}

.expert_submission_modal_consent_v {
	flex-shrink: 0;
	font-weight: 600;
	color: rgba(164, 218, 213, 0.95);
}

.expert_submission_files {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin-top: 0;
}

.expert_submission_files_modal {
	margin-top: 0;
}

.expert_submission_files_group {
	min-width: 0;
	padding: 12px 14px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.06);
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.expert_submission_files_group_title {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #a4dad5;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.expert_submission_files_group a {
	display: block;
	max-width: 100%;
	color: rgba(255, 255, 255, 0.88);
	font-size: 13px;
	line-height: 1.45;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-color: rgba(164, 218, 213, 0.45);
	overflow-wrap: anywhere;
	word-break: break-word;
}

.expert_submission_files_group a:hover {
	color: #a4dad5;
	text-decoration-color: rgba(164, 218, 213, 0.85);
}

.expert_submission_modal_section--json .expert_submission_modal_section_title {
	margin-bottom: 10px;
}

.expert_submission_payload_modal {
	margin-top: 0;
}

.expert_submission_payload_pre {
	margin: 0;
	padding: 14px 16px;
	border-radius: 12px;
	background: #0e0e0e;
	border: 1px solid rgba(255, 255, 255, 0.07);
	color: rgba(255, 255, 255, 0.82);
	font-family: ui-monospace, 'SFMono-Regular', 'Menlo', Monaco, 'Consolas', monospace;
	font-size: 12px;
	line-height: 1.55;
	tab-size: 2;
	max-height: min(42vh, 320px);
	overflow: auto;
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
}

.expert_submission_modal_box .expert_submission_files_empty {
	margin: 0;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
	.expert_qual_columns {
		grid-template-columns: 1fr;
	}

	.expert_submissions_viewer_toolbar {
		flex-direction: column;
		align-items: stretch;
	}

	.expert_submissions_search_input {
		max-width: none;
	}

	.expert_submission_modal_fields,
	.expert_submission_files,
	.expert_submission_modal_consents {
		grid-template-columns: 1fr;
	}

	.expert_submission_modal_field_groups {
		gap: 12px;
	}

	.expert_submission_modal_field_group {
		padding: 12px 14px 14px;
	}

	.expert_submission_modal_box {
		padding: 20px 18px 22px;
		max-width: min(92vw, 100%);
	}

	.air-modal-overlay:has(.expert_submission_modal_box) .expert_submission_modal_box {
		width: min(92vw, 100%);
	}

	.expert_qual_col {
		height: auto;
	}

	.expert_qual_footnote {
		margin-top: 8px;
		padding-top: 0;
	}
}

@media (max-width: 480px) {
	.add_new_book_form.expert_application_form .expert_row_date_email,
	.add_new_book_form.expert_application_form .expert_row_phone {
		grid-template-columns: 1fr;
	}

	.add_new_book_page .expert_application_form input[type="number"] {
		height: 44px;
		padding: 12px 16px;
	}

	.add_new_book_page .expert_application_form textarea {
		padding: 12px 16px;
		font-size: 14px;
	}
}

/* ---- Upload progress bar ---- */
.expert_upload_progress {
	margin: 18px 0 8px;
	display: flex;
	align-items: center;
	gap: 12px;
}

.expert_upload_progress_track {
	flex: 1;
	height: 6px;
	border-radius: 3px;
	background: rgba(255, 255, 255, .08);
	overflow: hidden;
}

.expert_upload_progress_bar {
	height: 100%;
	width: 0;
	border-radius: 3px;
	background: linear-gradient(90deg, #00c6ae, #00e6c8);
	transition: width .25s ease;
}

.expert_upload_progress_text {
	font-size: 13px;
	color: rgba(255, 255, 255, .6);
	white-space: nowrap;
	min-width: 80px;
	text-align: right;
}
