﻿/* ===== Страница логина ===== */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #f0f2f5;
}

.login-card {
    width: 100%;
    max-width: 400px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    padding: 40px 32px;
}

.login-card__header {
    text-align: center;
    margin-bottom: 28px;
}

.login-card__title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
}

.login-card__subtitle {
    margin: 6px 0 0;
    font-size: 0.9rem;
    color: #6b7280;
}

.login-card__error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 20px;
    color: #dc2626;
    font-size: 0.9rem;
    text-align: center;
}

.login-card__form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.login-card__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.login-card__field label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #374151;
}
/* ===== Админ-шапка ===== */
.admin-header {
    background: #1e293b;
    color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 100;
}

.admin-header__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}

.admin-header__logo {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
}

.admin-header__logo:hover {
    color: #93c5fd;
    text-decoration: none;
}

/* ===== Навигация ===== */
.admin-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
}

.admin-nav__link {
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #cbd5e1;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
    text-decoration: none;
}

.admin-nav__link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    text-decoration: none;
}

.admin-nav__link--logout {
    background: none;
    border: 1px solid #475569;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    color: #cbd5e1;
    margin-left: 8px;
}

.admin-nav__link--logout:hover {
    background: #dc2626;
    border-color: #dc2626;
    color: #ffffff;
}

.admin-nav__logout {
    margin: 0;
    padding: 0;
}

/* ===== Основная область ===== */
.admin-main {
    flex: 1;
    padding: 24px 0;
}

.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ===== Футер ===== */
.admin-footer {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 12px 0;
    text-align: center;
}

.admin-footer__text {
    margin: 0;
    font-size: 0.8rem;
    color: #9ca3af;
}

/* ===== Карточки ===== */
.admin-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 16px;
}

.admin-card__title {
    margin: 0 0 16px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
}

/* ===== Таблицы ===== */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.admin-table th {
    text-align: left;
    padding: 10px 12px;
    background: #f9fafb;
    border-bottom: 2px solid #e5e7eb;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
}

.admin-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #f3f4f6;
    color: #4b5563;
}

.admin-table tr:hover td {
    background: #f9fafb;
}

/* ===== Формы ===== */
.admin-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.admin-form__group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-form__label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #374151;
}

.admin-form__input,
.admin-form__select,
.admin-form__textarea {
    padding: 9px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.admin-form__input:focus,
.admin-form__select:focus,
.admin-form__textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

/* ===== Кнопки ===== */
.admin-btn {
    padding: 9px 18px;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
}

.admin-btn--primary {
    background: #2563eb;
    color: #ffffff;
}

.admin-btn--primary:hover {
    background: #1d4ed8;
}

.admin-btn--danger {
    background: #dc2626;
    color: #ffffff;
}

.admin-btn--danger:hover {
    background: #b91c1c;
}

.admin-btn--secondary {
    background: #e5e7eb;
    color: #374151;
}

.admin-btn--secondary:hover {
    background: #d1d5db;
}

.admin-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== Бейджи ===== */
.admin-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 500;
}

.admin-badge--success {
    background: #dcfce7;
    color: #166534;
}

.admin-badge--warning {
    background: #fef9c3;
    color: #854d0e;
}

.admin-badge--danger {
    background: #fef2f2;
    color: #dc2626;
}

.admin-badge--info {
    background: #dbeafe;
    color: #1e40af;
}

/* Этап жизненного цикла (Б2 Перечня НД) — нейтральный фиолетовый бейдж */
.admin-badge--lifecycle {
    background: #ede9fe;
    color: #6d28d9;
}

/* Бейджи этапов ЖЦ в колонке «Этапы ЖЦ» таблицы документов */
.documents-table__stages {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    max-width: 220px;
}

/* ===== Формы: выпадающий список с чекбоксами (этапы ЖЦ, модалка редактирования) ===== */
.admin-form__multiselect {
    position: relative;
}

.admin-form__multiselect-details {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
}

.admin-form__multiselect-details[open] {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.admin-form__multiselect-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    cursor: pointer;
    user-select: none;
    font-size: 0.95rem;
    color: #374151;
    background: #f9fafb;
    list-style: none;
}

/* Убираем нативный треугольник <details> (WebKit). */
.admin-form__multiselect-summary::-webkit-details-marker {
    display: none;
}

/* Стрелка-«шеврон» справа; при открытии разворачивается. */
.admin-form__multiselect-summary::after {
    content: "▾";
    margin-left: auto;
    color: #6b7280;
    font-size: 0.8rem;
    transition: transform 0.15s;
}

.admin-form__multiselect-details[open] .admin-form__multiselect-summary::after {
    transform: rotate(180deg);
}

.admin-form__multiselect-summary__label {
    font-weight: 500;
}

.admin-form__multiselect-summary__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 99px;
    background: #2563eb;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 600;
}

.admin-form__multiselect-summary__count:empty {
    display: none;
}

/* Список: каждый этап на своей строке, внутренняя прокрутка (~5 видимых). */
.admin-form__multiselect-list {
    max-height: 210px;
    overflow-y: auto;
    background: #ffffff;
}

.admin-form__multiselect-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 12px;
    cursor: pointer;
    line-height: 1.3;
}

.admin-form__multiselect-item:hover {
    background: #f8fafc;
}

.admin-form__multiselect-item input[type="checkbox"] {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin: 2px 0 0;
    accent-color: #2563eb;
}

.admin-form__multiselect-item__text {
    flex: 1 1 auto;
}

.admin-form__hint {
    color: #64748b;
    font-size: 0.85rem;
    margin-top: 6px;
}

/* ===== Адаптив ===== */
@media (max-width: 768px) {
    .admin-header__inner {
        flex-direction: column;
        height: auto;
        padding: 8px 12px;
        gap: 8px;
    }

    .admin-nav {
        width: 100%;
        justify-content: flex-start;
        padding-bottom: 4px;
    }

    .admin-nav__link {
        font-size: 0.8rem;
        padding: 6px 10px;
    }

    .admin-card {
        padding: 16px;
    }

    .admin-table {
        font-size: 0.8rem;
    }

    .admin-table th,
    .admin-table td {
        padding: 8px;
    }
}

.login-card__field:focus-within label {
    color: #2563eb;
}

.login-card__field input {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.login-card__field input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.login-card__btn {
    padding: 12px;
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.login-card__btn:hover {
    background: #1d4ed8;
}

/* ===== Админ-панель: общие ===== */
.admin-page {
    background: #f0f2f5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== Заголовки страниц ===== */
.admin-title {
    margin: 0 0 16px;
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a1a1a;
}

/* ===== Алерты ===== */
.admin-alert {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.admin-alert--error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

/* ===== Страница документов ===== */
.documents-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 16px;
}

.documents-filters__search {
    flex: 1;
    min-width: 220px;
}

.documents-card {
    padding: 0;
    overflow-x: auto;
}

.documents-table__title-text {
    font-weight: 500;
    color: #1a1a1a;
}

.documents-table__title-sub {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-top: 2px;
}

.documents-table__chunks {
    text-align: center;
}

/* Колонка действий: кнопки в СЕТКЕ 2x2, а не в одну строку.
   Причина: четыре кнопки в ряд делали колонку шире 150px и вызывали
   горизонтальную полосу прокрутки у таблицы документов. Сетка 2x2
   укладывает те же четыре кнопки в компактный квадрат. */
.documents-table__actions-col {
    min-width: 88px;
    width: 88px;
    white-space: nowrap;
}

/* Колонка «Дата введения» скрыта: её убирает у таблицы документов,
   из-за которой возникала горизонтальная прокрутка в .documents-card. */
.documents-table__effective-date {
    display: none;
}

.documents-table__actions {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 6px;
    justify-content: start;
    align-items: center;
}

.documents-table__actions .admin-btn {
    white-space: nowrap;
}

.admin-btn--sm {
    padding: 6px 10px;
    font-size: 0.85rem;
}

.admin-btn--icon {
    line-height: 1;
    font-size: 1rem;
}

.admin-btn--icon-danger:hover {
    background: #fef2f2;
}

.admin-table__empty {
    text-align: center;
    color: #9ca3af;
    padding: 24px 12px;
}

.admin-table__error {
    color: #dc2626;
}

.admin-table__muted {
    color: #9ca3af;
}

/* ===== Модалка редактирования документа ===== */
.admin-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 16px;
}

.admin-modal {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 20px 24px;
}

.admin-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.admin-modal__title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
}

.admin-modal__close {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: #6b7280;
    padding: 2px 6px;
}

.admin-modal__close:hover {
    color: #dc2626;
}

.admin-modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 8px;
}

/* ── Модалка «Диалог» в журнале запросов ─────────────────────────────
   Шире обычной формы: внутри полный ответ (несколько экранов текста)
   и таблица источников на 7 колонок. 480px не хватает — таблица
   расползается, а ответ читается по одной строке. */
.admin-modal--wide {
    max-width: 900px;
}

.admin-modal__body {
    display: block;
}

.admin-modal__subtitle {
    margin: 0 0 6px;
    font-size: .9rem;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: .03em;
}

/* Текст вопроса/ответа. nowrap не используется намеренно: длинные
   абзацы НТД должны переноситься. */
.admin-modal__text {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: .9rem;
    line-height: 1.5;
    color: #1f2937;
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* Ответ модели — многострочный: сохраняем переносы строк и абзацы,
   иначе HTML-таблицы из ответа схлопнутся в одну строку. */
.admin-modal__text--pre {
    white-space: pre-wrap;
    max-height: 45vh;
    overflow-y: auto;
    font-family: inherit;
}

.admin-modal-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
}

/* ===== Страница загрузки документов ===== */
.upload-card {
    padding: 24px;
}

.upload-dropzone {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 40px 24px;
    text-align: center;
    cursor: pointer;
    background: #f8fafc;
    transition: border-color 0.2s, background 0.2s;
    outline: none;
}

.upload-dropzone:hover,
.upload-dropzone:focus-visible,
.upload-dropzone--active {
    border-color: #2563eb;
    background: #eff6ff;
}

.upload-dropzone__icon {
    font-size: 2.2rem;
    line-height: 1;
}

.upload-dropzone__title {
    margin: 10px 0 4px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #1a1a1a;
}

.upload-dropzone__hint {
    margin: 0;
    font-size: 0.9rem;
    color: #6b7280;
}

.upload-dropzone__exts {
    margin: 10px 0 0;
    font-size: 0.8rem;
    color: #9ca3af;
}

.upload-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.upload-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin: 16px 0;
    padding: 10px 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.upload-summary__item {
    font-size: 0.9rem;
    color: #374151;
}

.upload-summary__item b {
    color: #1a1a1a;
}

.upload-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.upload-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px 16px;
}

.upload-item__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.upload-item__name {
    font-weight: 500;
    color: #1a1a1a;
    word-break: break-all;
}

.upload-item__meta {
    font-size: 0.8rem;
    color: #9ca3af;
    white-space: nowrap;
}

.upload-item__bar {
    height: 8px;
    background: #e5e7eb;
    border-radius: 99px;
    overflow: hidden;
    margin: 10px 0 8px;
}

.upload-item__fill {
    height: 100%;
    width: 0;
    background: #2563eb;
    border-radius: 99px;
    transition: width 0.4s ease;
}

.upload-item--failed .upload-item__fill {
    background: #dc2626;
}

.upload-item--done .upload-item__fill {
    background: #16a34a;
}

.upload-item__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.upload-item__status-text {
    font-size: 0.85rem;
    color: #4b5563;
    word-break: break-word;
}


/* ===== Алерты: дополнительные варианты ===== */
.admin-alert--success {
    background: #dcfce7;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.admin-alert--warning {
    background: #fef9c3;
    border: 1px solid #fde68a;
    color: #854d0e;
}

.admin-alert--info {
    background: #dbeafe;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

/* ===== Страница настроек ===== */
.settings-form {
    gap: 16px;
}

.settings-section {
    margin-bottom: 16px;
}

.settings-section__title {
    margin: 0 0 4px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #1a1a1a;
}

.settings-section__desc {
    margin: 0 0 16px;
    font-size: 0.85rem;
    color: #6b7280;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px 18px;
}

.settings-hint {
    margin: 4px 0 0;
    font-size: 0.8rem;
    color: #9ca3af;
}

/* Подзаголовок внутри секции настроек: делит её на группы по типу контента
   (общие значения / текст нормативки / солянка). */
.settings-subsection__title {
    margin: 20px 0 4px;
    padding-top: 14px;
    border-top: 1px solid #eef0f3;
    font-size: 0.95rem;
    font-weight: 600;
    color: #374151;
}

.settings-section .settings-subsection__title:first-of-type {
    margin-top: 8px;
    padding-top: 0;
    border-top: none;
}

.settings-range {
    padding: 0;
    border: none;
    accent-color: #2563eb;
}

.settings-range-value {
    font-weight: 600;
    color: #2563eb;
}

.settings-form__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.settings-warning {
    margin: 16px 0 0;
}


/* ===== Страница метрик ===== */
.metrics-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.metrics-stat {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 18px 20px;
}

.metrics-stat__label {
    margin: 0 0 8px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #6b7280;
}

.metrics-stat__value {
    font-size: 1.7rem;
    font-weight: 700;
    color: #1a1a1a;
}

.metrics-table-card {
    padding: 0;
    overflow-x: auto;
}

.metrics-table__nowrap {
    white-space: nowrap;
}

.metrics-table__num {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.metrics-table__filename {
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.metrics-table__question {
    max-width: 360px;
}

.metrics-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-top: 1px solid #e5e7eb;
}

.metrics-pagination__info {
    font-size: 0.85rem;
    color: #6b7280;
}

.metrics-pagination__buttons {
    display: flex;
    gap: 8px;
}

/* ── Прогресс переиндексации (скрытая строка под строкой документа) ── */

.reindex-progress td {
    padding: 0 16px 26px;
    vertical-align: top;
}

.reindex-progress .progress-bar {
    position: relative;
    height: 8px;
    max-width: 480px;
    background: #e5e7eb;
    border-radius: 99px;
}

.reindex-progress .progress-bar__fill {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 0;
    background: #2563eb;
    border-radius: 99px;
    transition: width 0.4s ease;
}

.reindex-progress .progress-bar__text {
    position: absolute;
    top: 12px;
    left: 0;
    font-size: 0.8rem;
    color: #6b7280;
    white-space: nowrap;
}

/* ===== Дашборд ===== */
.dashboard-stat__sub {
    margin: 6px 0 0;
    font-size: 0.8rem;
    color: #6b7280;
}

.dashboard-config th,
.dashboard-config td {
    vertical-align: top;
}

.dashboard-config td:first-child {
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
}

.dashboard-config__hint {
    margin: 2px 0 0;
    font-size: 0.8rem;
    color: #9ca3af;
    word-break: break-all;
}


/* ── Таблица расхождений параметров индексации (15.11.2026) ──────────────
   Показывает, что настроено сейчас и что было при индексации корпуса:
   админ видит, куда вернуть значение, чтобы отменить переиндексацию. */
.settings-diff {
    width: 100%;
    margin: 10px 0 8px;
    border-collapse: collapse;
    font-size: 0.88rem;
    background: rgba(255, 255, 255, 0.7);
}

.settings-diff th,
.settings-diff td {
    padding: 6px 10px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    vertical-align: top;
}

.settings-diff th {
    font-weight: 600;
    color: #374151;
    background: rgba(0, 0, 0, 0.03);
}

.settings-diff code {
    font-size: 0.82rem;
    color: #1f2937;
    word-break: break-all;
}

/* Текущее значение — то, что привело к расхождению, выделено. */
.settings-diff__now {
    color: #b45309;
    font-weight: 600;
    word-break: break-all;
}

/* Значение при индексации — эталон, к которому можно вернуться. */
.settings-diff__was {
    color: #047857;
    word-break: break-all;
}


/* ── Выравнивание полей в сетке настроек (16.11.2026, переделано) ─────────
   Проблема: поля ввода вставали на разной высоте, потому что подписи
   занимают разное число строк (ONTOLOGY_TERM_REF_BOOST — две-три,
   top_k — одну).

   ВАЖНО: здесь НЕ используется subgrid. Первая попытка объявляла
   grid-row: span 3 с grid-template-rows: subgrid, но у родительской сетки
   нет фиксированных строк — она раскладывает элементы по колонкам.
   Третья строка (подсказка) получала 1fr и растягивалась на всю высоту
   карточки: блоки «слипались», границы между ними пропадали.

   Рабочее решение: подпись получает одинаковую минимальную высоту
   (две строки при line-height 1.3 = 2.6em) и прижимается к полю ввода
   снизу. Поле и подсказка идут следом в обычном потоке, высоты блоков
   остаются самостоятельными — границы видны. */
.settings-grid .admin-form__group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    /* Блок не растягивается на всю высоту строки сетки. */
    align-self: start;
}

.settings-grid .admin-form__label {
    min-height: 2.6em;
    display: flex;
    align-items: flex-end;
    line-height: 1.3;
}