/**
 * get_library_book_search.css
 * v15.0 — Добавлены стили для кнопки сотрудничества в шапке.
 */

/* ============================================================
   КОНТЕЙНЕР
   ============================================================ */
.search-books-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4px;
}

/* ============================================================
   ВКЛАДКИ (Локальный / Глобальный / Помощник)
   ============================================================ */
#searchTabs {
    border-bottom: 2px solid #e2e8f0;
    gap: 4px;
}
#searchTabs .nav-link {
    color: #64748b; border: none;
    border-bottom: 3px solid transparent;
    font-weight: 500; padding: 10px 18px;
    transition: all .2s ease;
    border-radius: 8px 8px 0 0;
}
#searchTabs .nav-link i { margin-right: 4px; }
#searchTabs .nav-link:hover {
    color: #4f46e5; border-bottom-color: #c7d2fe;
    background: #f8fafc;
}
#searchTabs .nav-link.active {
    color: #4f46e5; border-bottom-color: #4f46e5;
    background: transparent; font-weight: 600;
}

/* ============================================================
   ФОРМА ЛОКАЛЬНОГО ПОИСКА
   ============================================================ */
.search-books-container .search-main-bar {
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid #eef2f6;
    padding: 12px 14px;
    background: white;
    overflow: hidden;
}
.search-books-container .search-main-bar .form-control,
.search-books-container .search-main-bar .form-select {
    border: 1.5px solid #e2e8f0;
    font-size: 0.92rem;
    padding: 0.5rem 0.7rem;
    box-shadow: none;
    transition: border-color 0.2s ease;
    border-radius: 8px; height: 42px;
    min-width: 0; width: 100%;
}
.search-books-container .search-main-bar .form-control:focus,
.search-books-container .search-main-bar .form-select:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
    z-index: 3;
}
.search-books-container .search-main-bar .form-control::placeholder {
    color: #94a3b8; font-weight: 400;
}
.search-books-container .search-main-bar .input-group {
    flex-wrap: nowrap; width: 100%;
}
.search-books-container .search-main-bar .input-group-text {
    background: white; border: 1.5px solid #e2e8f0;
    border-right: none; color: #94a3b8;
    border-radius: 8px 0 0 8px;
    padding: 0.5rem 0.9rem; height: 42px;
}
.search-books-container .search-main-bar .input-group .form-control {
    border-radius: 0 8px 8px 0; border-left: none;
}
.search-books-container .search-main-bar .input-group .form-control:focus {
    box-shadow: none; border-color: #4f46e5;
}
.search-books-container .search-main-bar .btn {
    height: 42px; border-radius: 8px;
    font-weight: 500; white-space: nowrap;
}
.search-books-container .search-main-bar .btn-primary {
    background: #4f46e5; border-color: #4f46e5;
    padding: 0.5rem 1rem; transition: all 0.2s ease;
}
.search-books-container .search-main-bar .btn-primary:hover {
    background: #4338ca; border-color: #4338ca;
}
.search-books-container .search-main-bar .btn-outline-secondary {
    border: 1.5px solid #e2e8f0;
    padding: 0.5rem 0.9rem; color: #64748b;
    transition: all 0.2s ease;
}
.search-books-container .search-main-bar .btn-outline-secondary:hover {
    background: #f1f5f9; border-color: #cbd5e1; color: #1a2634;
}

/* ============================================================
   РАСШИРЕННЫЕ ПАРАМЕТРЫ
   ============================================================ */
.search-books-container .search-settings-panel {
    border-radius: 12px; border: 1px solid #eef2f6;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    margin-top: 8px; animation: slideDown 0.3s ease;
    background: white;
}
.search-books-container .search-settings-panel .card-body { padding: 16px 20px; }
.search-books-container .search-settings-panel .form-label {
    font-size: 0.85rem; font-weight: 600;
    color: #1a2634; margin-bottom: 4px;
}
.search-books-container .search-settings-panel .form-control,
.search-books-container .search-settings-panel .form-select {
    border-radius: 8px; border: 1.5px solid #e2e8f0;
    font-size: 0.9rem; padding: 0.45rem 0.75rem;
}
.search-books-container .search-settings-panel .form-control:focus,
.search-books-container .search-settings-panel .form-select:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}

/* ============================================================
   РЕЗУЛЬТАТЫ ЛОКАЛЬНОГО ПОИСКА
   ============================================================ */
.search-books-container .search-results-container {
    animation: fadeIn 0.3s ease; background: white;
    border-radius: 12px; padding: 16px; border: 1px solid #eef2f6;
}
.search-books-container .search-results-container h6 {
    font-weight: 600; color: #1a2634;
}
.book-card-detail {
    display: flex; gap: 14px; align-items: flex-start;
    padding: 12px; background: #fff; border: 1px solid #eef2f6;
    border-radius: 10px; transition: all .2s ease;
    margin-bottom: 12px;
}
.book-card-detail:hover {
    border-color: #c7d2fe;
    box-shadow: 0 2px 12px rgba(79,70,229,.08);
}
.book-card-detail .book-cover-wrap { flex-shrink: 0; width: 90px; }
.book-card-detail .book-cover,
.book-card-detail .book-cover-empty {
    width: 90px; height: 135px;
    object-fit: cover; border-radius: 6px;
    border: 1px solid #eef2f6; background: #f8fafc; display: block;
}
.book-card-detail .book-cover-empty {
    display: flex; align-items: center; justify-content: center;
    color: #94a3b8; font-size: 2rem;
}
.book-card-detail .book-info { flex-grow: 1; min-width: 0; }
.book-card-detail .book-title {
    font-size: 1.05rem; margin-bottom: 8px;
    font-weight: 600; line-height: 1.35; color: #0f172a;
}
.book-detail-table { width: 100%; border-collapse: collapse; margin: 0; }
.book-detail-table tr { border-bottom: 1px solid #f1f5f9; }
.book-detail-table tr:last-child { border-bottom: none; }
.book-detail-table td {
    padding: 4px 8px 4px 0; vertical-align: top;
    font-size: 0.88rem; line-height: 1.5;
}
.book-detail-label {
    color: #64748b; font-weight: 500;
    white-space: nowrap; width: 170px;
}
.book-detail-value { color: #1e293b; word-break: break-word; }
.book-detail-value code {
    background: #f1f5f9; padding: 1px 6px;
    border-radius: 4px; font-size: 0.82rem;
}
.book-card-detail .book-actions {
    margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap;
}

/* ============================================================
   ПАГИНАЦИЯ
   ============================================================ */
.search-books-container #searchPagination .pagination { margin: 0; }
.search-books-container #searchPagination .page-link {
    color: #4f46e5; border-color: #e2e8f0;
    font-size: 0.9rem; padding: 0.4rem 0.8rem;
}
.search-books-container #searchPagination .page-item.active .page-link {
    background: #4f46e5; border-color: #4f46e5; color: white;
}
.search-books-container #searchPagination .page-item.disabled .page-link {
    color: #94a3b8; pointer-events: none;
}

/* ============================================================
   МОДАЛЬНОЕ ОКНО ДЕТАЛЕЙ КНИГИ
   ============================================================ */
#bookDetailModal .modal-header {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white; border-radius: 16px 16px 0 0;
    padding: 16px 24px;
}
#bookDetailModal .modal-header .modal-title { font-weight: 600; font-size: 1.1rem; }
#bookDetailModal .modal-header .btn-close { filter: brightness(0) invert(1); opacity: 0.8; }
#bookDetailModal .modal-body { padding: 20px 24px; max-height: 70vh; overflow-y: auto; }
#bookDetailModal .modal-footer { border-top: 1px solid #eef2f6; padding: 12px 24px; }

.abib-cover { box-shadow: 0 2px 8px rgba(0,0,0,.1); margin-bottom: 8px; }
.abib-biblio {
    background: #f8fafc; padding: 10px 14px; border-radius: 8px;
    border-left: 3px solid #4f46e5;
    font-size: 0.9rem; line-height: 1.55;
    color: #1a2634; margin-top: 4px;
}
.abib-table { font-size: 0.9rem; margin-bottom: 0; }
.abib-table tr td { padding: 6px 8px; vertical-align: top; border-bottom: 1px solid #f1f5f9; }
.abib-table .abib-label { color: #64748b; font-weight: 600; width: 180px; white-space: nowrap; }
.abib-content { background: #f8fafc; padding: 10px 14px; border-radius: 8px; font-size: 0.9rem; }

.abib-copies-table { font-size: 0.9rem; }
.abib-copies-table thead th {
    background: #f8fafc; color: #1a2634; font-weight: 600;
    border-bottom: 2px solid #e2e8f0;
}
.abib-copies-table td { vertical-align: middle; padding: 8px 10px; }
.abib-copies-table .badge { font-size: 0.78rem; padding: 4px 8px; }
.copy-row-available { background-color: #f0fdf4 !important; border-left: 4px solid #22c55e; }
.copy-row-available:hover { background-color: #dcfce7 !important; }
.copy-row-issued { background-color: #f3f4f6 !important; border-left: 4px solid #9ca3af; }
.copy-row-issued:hover { background-color: #e5e7eb !important; }
.copy-row-issued td, .copy-row-issued code, .copy-row-issued strong { color: #6b7280 !important; }
.copy-row-issued code { background: #e5e7eb; padding: 2px 6px; border-radius: 4px; }

/* ============================================================
   СОХРАНЁННЫЕ ПОИСКИ
   ============================================================ */
.saved-searches-container .card { border-radius: 12px; border: 1px solid #eef2f6; }
.saved-searches-container .card-header {
    background: #f8fafc; border-bottom: 1px solid #eef2f6;
    padding: 10px 16px;
}
.saved-searches-container .saved-search-item {
    border-radius: 8px; border: 1px solid #eef2f6;
    background: #f8fafc !important;
}
.saved-searches-container .saved-search-item .btn-link { color: #4f46e5; font-size: 0.85rem; }

/* ============================================================
   ГЛОБАЛЬНЫЙ ПОИСК — ОБЩИЙ КОНТЕЙНЕР
   ============================================================ */
.external-search-container.global-search {
    background: transparent;
}

/* Хедер */
.gs-header {
    display: flex; align-items: center; gap: 16px;
    padding: 18px 20px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 60%, #0f766e 100%);
    border-radius: 16px;
    color: #fff;
    margin-bottom: 16px;
    box-shadow: 0 6px 20px rgba(79, 70, 229, .25);
    position: relative;
    overflow: hidden;
    flex-wrap: wrap; /* Для мобильной адаптации */
}
.gs-header::after {
    content: ''; position: absolute; right: -40px; top: -40px;
    width: 180px; height: 180px; border-radius: 50%;
    background: rgba(255,255,255,.08);
    pointer-events: none;
}
.gs-header-icon {
    flex-shrink: 0;
    width: 56px; height: 56px;
    border-radius: 14px;
    background: rgba(255,255,255,.15);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
    border: 1px solid rgba(255,255,255,.2);
}
.gs-header-text { min-width: 0; flex-grow: 1; }
.gs-title {
    margin: 0; font-size: 1.35rem; font-weight: 700; line-height: 1.2;
    color: #fff;
}
.gs-subtitle {
    margin: 4px 0 0; font-size: .85rem;
    color: rgba(255,255,255,.85);
    line-height: 1.4;
}

/* Форма */
.gs-form-card {
    border-radius: 14px;
    border: 1px solid #eef2f6;
    box-shadow: 0 2px 12px rgba(0,0,0,.05);
    background: #fff;
}
.gs-form-card .form-label {
    font-size: .78rem; font-weight: 600; color: #475569;
}
.gs-input {
    border-radius: 8px; border: 1.5px solid #e2e8f0;
    font-size: .92rem; height: 42px;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.gs-input:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79,70,229,.1);
}
.gs-btn-search {
    height: 42px; border-radius: 8px;
    font-weight: 600;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    border: none;
    transition: transform .15s ease, box-shadow .15s ease;
}
.gs-btn-search:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(79,70,229,.35);
}
.gs-btn-search:disabled { opacity: .6; }
.gs-btn-stop {
    height: 42px; border-radius: 8px;
    font-weight: 600;
    white-space: nowrap;
}

/* Кнопки «Справка» */
.ext-doc-wrap { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.ext-doc-btn {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: .72rem; font-weight: 600;
    padding: 2px 8px; border-radius: 10px;
    background: #eef2ff; color: #4f46e5;
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
    white-space: nowrap;
}
.ext-doc-btn:hover { background: #4f46e5; color: #fff; }
.ext-doc-btn i { font-size: .8rem; }

/* Панель серверов */
.gs-servers-wrap {
    background: #fff;
    border: 1px solid #eef2f6;
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 12px;
}
.z3950-servers-summary {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; padding: 10px 12px; flex-wrap: wrap;
    border-radius: 12px; border: 1px solid #e2e8f0;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}
.z3950-summary-left {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .88rem; color: #0f172a;
}
.z3950-summary-left i { color: #0f766e; font-size: 1.1rem; }
.z3950-summary-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.z3950-summary-actions .btn {
    height: auto; font-size: .8rem; padding: 5px 12px;
    border-radius: 8px; font-weight: 500;
    display: inline-flex; align-items: center; gap: 5px;
}

/* Прогресс */
.gs-progress-wrap {
    background: #fff;
    border: 1px solid #eef2f6;
    border-radius: 12px;
    padding: 12px 14px;
}
.gs-progress-label { color: #4f46e5; font-weight: 600; }
.gs-progress-count { color: #64748b; font-weight: 600; }
.gs-progress-bar-wrap {
    background: #eef2ff;
    border-radius: 10px;
    overflow: hidden;
}
#extProgressBar {
    background: linear-gradient(90deg, #4f46e5, #7c3aed);
    transition: width .25s ease;
}
#extProgressBar.bg-secondary {
    background: #94a3b8 !important;
    background-image: none !important;
}

/* Сводка */
.gs-summary-bar {
    background: #fff;
    border: 1px solid #eef2f6;
    border-radius: 12px;
    padding: 10px 14px;
}
.gs-summary-text {
    display: flex; flex-wrap: wrap; gap: 12px;
    font-size: .85rem; color: #475569;
}
.gs-summary-item {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 2px 10px; border-radius: 20px;
    font-size: .8rem;
}
.gs-summary-item.gs-src-google      { background: #e8f0fe; color: #1a73e8; }
.gs-summary-item.gs-src-openlibrary { background: #fde8e8; color: #c0392b; }
.gs-summary-item.gs-src-z3950       { background: #ccfbf1; color: #0f766e; }
.gs-summary-item.gs-src-sru         { background: #e0f2fe; color: #075985; }
.gs-summary-item.gs-src-kz          { background: #ccfbf1; color: #0f766e; font-weight: 700; }
.gs-summary-total {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 2px 12px; border-radius: 20px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff; font-weight: 700; font-size: .82rem;
}
#extSummaryBar .btn {
    height: auto; font-size: .78rem; padding: 5px 12px;
    border-radius: 8px; font-weight: 500;
    display: inline-flex; align-items: center; gap: 5px;
}
#extSummaryBar .btn .badge { font-size: .72rem; }

/* ============================================================
   ВКЛАДКИ ПО ИСТОЧНИКАМ (Глобальный — «Все источники»)
   ============================================================ */
.gs-all-tabs {
    background: #fff;
    border: 1px solid #eef2f6;
    border-radius: 14px;
    padding: 12px 14px;
}
.gs-all-tabs-nav {
    gap: 4px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.gs-all-tabs-nav .nav-link {
    color: #64748b;
    border: 1px solid transparent;
    border-radius: 20px;
    font-size: .85rem; font-weight: 500;
    padding: 6px 14px;
    display: inline-flex; align-items: center; gap: 6px;
    background: #f8fafc;
    transition: all .15s ease;
}
.gs-all-tabs-nav .nav-link:hover { background: #eef2ff; color: #4f46e5; }
.gs-all-tabs-nav .nav-link.active { background: #4f46e5; color: #fff; font-weight: 600; border-color: #4f46e5; }
.gs-all-tabs-nav .nav-link .badge {
    font-size: .68rem; padding: 1px 6px;
    background: rgba(0,0,0,.08) !important; color: currentColor !important;
}
.gs-all-tabs-nav .nav-link.active .badge {
    background: rgba(255,255,255,.25) !important; color: #fff !important;
}

.gs-tab-src.gs-src-google.active       { background: #1a73e8 !important; border-color: #1a73e8 !important; }
.gs-tab-src.gs-src-openlibrary.active  { background: #c0392b !important; border-color: #c0392b !important; }
.gs-tab-src.gs-src-z3950.active        { background: #0f766e !important; border-color: #0f766e !important; }
.gs-tab-src.gs-src-sru.active          { background: #0284c7 !important; border-color: #0284c7 !important; }

/* Статусы вкладок */
.gs-tab-status-wait  { color: #94a3b8; }
.gs-tab-status-run   { color: #4f46e5; }
.gs-tab-status-ok    { color: #22c55e; }
.gs-tab-status-err   { color: #ef4444; }
.gs-tab-status-empty { color: #94a3b8; }
.gs-all-tabs-nav .nav-link.active .gs-tab-status-wait,
.gs-all-tabs-nav .nav-link.active .gs-tab-status-ok,
.gs-all-tabs-nav .nav-link.active .gs-tab-status-err,
.gs-all-tabs-nav .nav-link.active .gs-tab-status-empty,
.gs-all-tabs-nav .nav-link.active .gs-tab-status-run { color: #fff; }

.gs-waiting {
    color: #94a3b8; font-size: .88rem;
    padding: 20px 0; text-align: center;
}
.gs-pane-header {
    font-size: .9rem; font-weight: 600;
    color: #0f172a;
    padding: 6px 0 10px;
    border-bottom: 1px dashed #e2e8f0;
    margin-bottom: 10px;
    display: flex; align-items: center; gap: 6px;
}
.gs-pane-header.gs-src-google      { color: #1a73e8; }
.gs-pane-header.gs-src-openlibrary { color: #c0392b; }
.gs-pane-header.gs-src-z3950       { color: #0f766e; }
.gs-pane-header.gs-src-sru         { color: #0284c7; }
.gs-pane-docs {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed #e2e8f0;
    display: flex; gap: 6px; flex-wrap: wrap;
}

/* ============================================================
   КАРТОЧКИ РЕЗУЛЬТАТОВ
   ============================================================ */
.gs-result-card {
    position: relative;
    background: #fff;
    border: 1px solid #eef2f6;
    border-radius: 12px;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    animation: gsFadeIn .28s ease;
}
.gs-result-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79,70,229,.1);
    border-color: #c7d2fe;
}
.gs-result-accent {
    position: absolute; left: 0; top: 0; bottom: 0;
    width: 4px;
}
.gs-result-card.google      .gs-result-accent { background: #1a73e8; }
.gs-result-card.openlibrary .gs-result-accent { background: #c0392b; }
.gs-result-card.z3950       .gs-result-accent { background: #0f766e; }
.gs-result-card.sru         .gs-result-accent { background: #0284c7; }
.gs-result-card.kz          .gs-result-accent { background: linear-gradient(180deg, #22c55e, #0f766e); }

.gs-result-body {
    display: flex; gap: 14px;
    padding: 14px 16px 14px 20px;
    align-items: flex-start;
}
.gs-result-thumb-wrap { flex-shrink: 0; width: 80px; }
.gs-result-thumb {
    width: 80px; height: 120px; object-fit: cover;
    border-radius: 6px; border: 1px solid #eef2f6;
    background: #f8fafc; display: block;
}
.gs-result-thumb-empty {
    width: 80px; height: 120px;
    background: linear-gradient(180deg, #eef2ff, #f8fafc);
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    color: #94a3b8; font-size: 2rem;
    border: 1px solid #eef2f6;
}
.gs-result-content { flex-grow: 1; min-width: 0; }

.gs-result-head {
    display: flex; flex-wrap: wrap; gap: 6px;
    align-items: center;
    margin-bottom: 6px;
}
.gs-source-pill {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: .7rem; font-weight: 700;
    padding: 2px 9px; border-radius: 20px;
    letter-spacing: .02em;
}
.gs-source-pill.gs-src-google      { background: #e8f0fe; color: #1a73e8; }
.gs-source-pill.gs-src-openlibrary { background: #fde8e8; color: #c0392b; }
.gs-source-pill.gs-src-z3950       { background: #ccfbf1; color: #0f766e; }
.gs-source-pill.gs-src-sru         { background: #e0f2fe; color: #075985; }
.gs-source-pill.gs-src-kz          { background: linear-gradient(135deg, #22c55e, #0f766e); color: #fff; }
.gs-source-pill.gs-src-all         { background: #ede9fe; color: #5b21b6; }

.gs-result-server {
    font-size: .74rem; color: #64748b;
    display: inline-flex; align-items: center; gap: 4px;
    background: #f8fafc; padding: 2px 8px; border-radius: 10px;
}

.gs-result-title {
    font-size: 1rem; font-weight: 600; line-height: 1.35;
    color: #0f172a; margin: 0 0 6px;
}
.gs-result-subtitle { color: #475569; font-weight: 400; }

.gs-result-meta {
    display: flex; flex-wrap: wrap; gap: 12px;
    font-size: .82rem; color: #475569;
    margin-bottom: 8px;
}
.gs-result-meta span { display: inline-flex; align-items: center; gap: 4px; }

.gs-result-badges {
    display: flex; flex-wrap: wrap; gap: 6px;
    margin-bottom: 8px;
}
.gs-mini-badge {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: .72rem; font-weight: 600;
    padding: 2px 8px; border-radius: 10px;
    background: #f1f5f9; color: #334155;
    border: 1px solid #e2e8f0;
}
.gs-result-desc {
    font-size: .82rem; color: #64748b;
    line-height: 1.5; margin: 6px 0 0;
}
.gs-result-link {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: .78rem; font-weight: 600; color: #4f46e5;
    text-decoration: none; margin-top: 8px;
    padding: 3px 10px; border-radius: 10px;
    background: #eef2ff;
    transition: all .15s ease;
}
.gs-result-link:hover {
    background: #4f46e5; color: #fff;
}

@keyframes gsFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   СТАТИСТИКА KZ (В МОДАЛЬНОМ ОКНЕ)
   ============================================================ */
.kz-stats-block {
    background: linear-gradient(180deg, #f0fdfa 0%, #ffffff 60%);
    border: 1px solid #99f6e4;
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(15, 118, 110, .06);
}
.kz-stats-header {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 8px;
    padding-bottom: 10px; margin-bottom: 12px;
    border-bottom: 1px dashed #99f6e4;
}
.kz-stats-title {
    font-weight: 700; font-size: .95rem; color: #0f766e;
    display: inline-flex; align-items: center; gap: 6px;
}
.kz-stats-title i { font-size: 1.1rem; }
.kz-stats-stamp { font-size: .74rem; color: #64748b; }
.kz-stats-stamp i { margin-right: 4px; }

.kz-stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
    margin-bottom: 10px;
}
.kz-stat-card {
    display: flex; align-items: center; gap: 10px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-left-width: 4px;
    border-radius: 10px;
    padding: 8px 12px;
    transition: transform .15s ease, box-shadow .15s ease;
}
.kz-stat-card:hover { transform: translateY(-1px); box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.kz-stat-card.border-secondary { border-left-color: #64748b; }
.kz-stat-card.border-success   { border-left-color: #22c55e; }
.kz-stat-card.border-danger    { border-left-color: #ef4444; }
.kz-stat-card.border-warning   { border-left-color: #f59e0b; }
.kz-stat-icon { font-size: 1.4rem; line-height: 1; }
.kz-stat-body { min-width: 0; }
.kz-stat-label { font-size: .72rem; color: #64748b; font-weight: 500; }
.kz-stat-value { font-size: 1.05rem; font-weight: 700; color: #0f172a; }

.kz-stats-progress { margin: 8px 0 12px; }
.kz-stats-progress .progress { background: #f1f5f9; border-radius: 10px; overflow: hidden; }
.kz-stats-progress .progress-bar { font-size: .7rem; line-height: 14px; }

.kz-stats-protocols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px;
}
.kz-proto-card {
    display: flex; align-items: center; gap: 10px;
    background: #fff; border: 1px solid #e2e8f0;
    border-radius: 10px; padding: 8px 12px;
}
.kz-proto-card.gs-src-z3950 { border-left: 4px solid #0f766e; }
.kz-proto-card.gs-src-sru   { border-left: 4px solid #0284c7; }
.kz-proto-card.kz-proto-latency { border-left: 4px solid #8b5cf6; }

.kz-proto-icon { font-size: 1.4rem; line-height: 1; }
.kz-proto-card.gs-src-z3950 .kz-proto-icon { color: #0f766e; }
.kz-proto-card.gs-src-sru   .kz-proto-icon { color: #0284c7; }
.kz-proto-card.kz-proto-latency .kz-proto-icon { color: #8b5cf6; }

.kz-proto-body { min-width: 0; }
.kz-proto-name { font-weight: 700; font-size: .82rem; color: #0f172a; }
.kz-proto-stats {
    display: flex; flex-wrap: wrap; gap: 10px;
    font-size: .74rem; color: #475569; margin-top: 2px;
}
.kz-proto-stats strong { color: #0f172a; }

/* ============================================================
   БЛОК «КАЗАХСТАНСКИЕ СЕРВЕРЫ» (СПИСОК В МОДАЛКЕ)
   ============================================================ */
.gs-srv-block {
    background: linear-gradient(180deg, #f0fdfa 0%, #ffffff 100%);
    border: 1px solid #99f6e4;
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(15, 118, 110, .06);
}
.gs-srv-header {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 8px;
    padding-bottom: 10px; margin-bottom: 10px;
    border-bottom: 1px dashed #99f6e4;
}
.gs-srv-header-title {
    font-weight: 700; font-size: .95rem; color: #0f766e;
    display: inline-flex; align-items: center; gap: 6px;
}
.gs-srv-header-title i { font-size: 1.1rem; }
.gs-srv-header-stats {
    display: inline-flex; gap: 14px; font-size: .8rem; font-weight: 600;
}
.gs-srv-header-stats .gs-src-z3950 { color: #0f766e; }
.gs-srv-header-stats .gs-src-sru   { color: #0284c7; }

.gs-srv-list { display: flex; flex-direction: column; gap: 6px; }

.gs-srv-row {
    display: grid;
    grid-template-columns: 90px 1.4fr 1.6fr 80px 130px;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: .85rem;
    transition: background .15s ease, border-color .15s ease;
}
.gs-srv-row:hover { background: #f8fafc; border-color: #cbd5e1; }

.gs-srv-row.gs-srv-ok        { border-left: 3px solid #22c55e; }
.gs-srv-row.gs-srv-err       { border-left: 3px solid #ef4444; background: #fef2f2; }
.gs-srv-row.gs-srv-empty     { border-left: 3px solid #cbd5e1; }
.gs-srv-row.gs-srv-disabled  { border-left: 3px solid #cbd5e1; opacity: .75; }

.gs-srv-proto {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: .72rem; font-weight: 700; padding: 2px 8px;
    border-radius: 20px; white-space: nowrap;
}
.gs-srv-proto.gs-src-z3950 { background: #ccfbf1; color: #0f766e; }
.gs-srv-proto.gs-src-sru   { background: #e0f2fe; color: #075985; }

.gs-srv-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gs-srv-name-text {
    font-weight: 600; color: #0f172a;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.gs-srv-country {
    font-size: .68rem; font-weight: 600;
    background: #ccfbf1; color: #0f766e;
    padding: 0 6px; border-radius: 10px;
    align-self: flex-start;
}
.gs-srv-addr {
    font-size: .74rem; color: #475569;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.gs-srv-addr code {
    background: #f1f5f9; padding: 1px 6px; border-radius: 4px;
    font-size: .72rem; border: 1px solid #e2e8f0;
}
.gs-srv-count {
    text-align: center; font-size: .8rem; color: #334155;
}
.gs-srv-count strong { color: #0f766e; font-size: .95rem; }
.gs-srv-status {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: .78rem; font-weight: 600; color: #334155;
    justify-self: end;
}
.gs-srv-status i { font-size: .95rem; }

.gs-results-wrap { margin-top: 4px; }

/* ============================================================
   МОДАЛЬНОЕ ОКНО СТАТИСТИКИ СЕРВЕРОВ
   ============================================================ */
.stats-country-table { font-size: .85rem; margin-bottom: 0; }
.stats-country-table thead th {
    font-size: .75rem; text-transform: uppercase;
    letter-spacing: .04em; color: #64748b;
    font-weight: 600; background: #f8fafc !important;
    border-bottom: 2px solid #e2e8f0;
}
.stats-country-table td { vertical-align: middle; padding: 8px 10px; }
.stats-country-table tr:hover { background: #f8fafc; }
.stats-country-table .progress { background: #f1f5f9; border-radius: 10px; }
.stats-country-table .progress-bar { border-radius: 10px; font-size: .7rem; line-height: 14px; }

#serverStatsModal .modal-dialog { max-width: 1140px; }
#serverStatsModal .modal-header {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
}
#serverStatsModal .modal-header .btn-close { filter: brightness(0) invert(1); opacity: .8; }
#serverStatsModal .card { border-radius: 12px; }

/* ============================================================
   МОДАЛЬНОЕ ОКНО ВЫБОРА СЕРВЕРОВ
   ============================================================ */
#serverPickerModal .modal-dialog { max-width: 1140px; }
#serverPickerModal .modal-header {
    background: linear-gradient(135deg, #0f766e, #14b8a6);
    color: #fff;
}
#serverPickerModal .modal-header .btn-close { filter: brightness(0) invert(1); opacity: .8; }

.server-picker-toolbar {
    display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
    padding: 10px 12px; border-radius: 12px;
    background: #f8fafc; border: 1px solid #e2e8f0;
}
.server-picker-toolbar .server-picker-filter {
    flex: 1 1 240px; min-width: 200px;
}
.server-picker-toolbar .btn {
    height: auto; font-size: .8rem; padding: 5px 12px;
    border-radius: 8px; font-weight: 500;
    display: inline-flex; align-items: center; gap: 5px;
}

.server-picker-stats { font-size: .82rem; }
.server-picker-list {
    max-height: 520px; overflow-y: auto;
    border: 1px solid #e2e8f0; border-radius: 12px;
    padding: 4px; background: #fff;
}
.server-picker-list::-webkit-scrollbar { width: 6px; }
.server-picker-list::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }

.server-picker-section-title {
    display: flex; align-items: center; gap: 6px;
    font-size: .72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .05em;
    color: #64748b;
    padding: 8px 12px 4px;
    margin-top: 4px;
    border-bottom: 1px dashed #e2e8f0;
}
.server-picker-section-title:first-child { margin-top: 0; }
.server-picker-section-title i { font-size: .85rem; }
.server-picker-section-kz {
    color: #0f766e;
    border-bottom-color: #99f6e4;
}
.server-picker-section-kz i { color: #0f766e; }

.z3950-item {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 10px 12px; cursor: pointer;
    border-radius: 10px; border: 1px solid transparent;
    background: #fff; margin: 0; position: relative;
    transition: background .15s ease, border-color .15s ease;
}
.z3950-item:hover { background: #f8fafc; border-color: #e2e8f0; }
.z3950-item:has(input:checked) { background: #f0fdfa; border-color: #99f6e4; }
.z3950-item-check { flex-shrink: 0; margin: 2px 0 0; cursor: pointer; width: 16px; height: 16px; }
.z3950-item-body { display: flex; flex-direction: column; gap: 3px; flex-grow: 1; min-width: 0; }
.z3950-item-name { font-weight: 600; font-size: .88rem; color: #0f172a; line-height: 1.3; }
.z3950-item-country {
    display: inline-block; font-size: .7rem; font-weight: 600;
    background: #e0f2fe; color: #075985;
    padding: 1px 6px; border-radius: 10px; margin-left: 4px;
}
.z3950-item-meta {
    display: flex; flex-wrap: wrap; align-items: center;
    gap: 4px 8px; font-size: .74rem; color: #94a3b8; line-height: 1.35;
}
.z3950-item-meta code {
    background: #f1f5f9; color: #475569; padding: 1px 6px; border-radius: 4px;
    font-size: .72rem; border: 1px solid #e2e8f0;
    max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.z3950-item-status {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: .72rem; padding: 1px 7px; border-radius: 10px; font-weight: 600;
}
.z3950-item-status.is-online { background: #dcfce7; color: #166534; }
.z3950-item-status.is-sub { background: #fef3c7; color: #92400e; }
.z3950-item-status.is-offline { background: #fee2e2; color: #991b1b; }

.z3950-item.is-online { border-color: #86efac !important; }
.z3950-item.is-online::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
    background: #22c55e; border-radius: 10px 0 0 10px;
}
.z3950-item.is-sub { border-color: #fde68a !important; background: #fffbeb !important; }
.z3950-item.is-sub::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
    background: #f59e0b; border-radius: 10px 0 0 10px;
}
.z3950-item.is-offline { border-color: #fecaca !important; background: #fef2f2 !important; }
.z3950-item.is-offline .z3950-item-name { color: #991b1b; }
.z3950-item.is-offline::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
    background: #ef4444; border-radius: 10px 0 0 10px;
}

.z3950-item.is-kz .z3950-item-country { background: #ccfbf1; color: #0f766e; }
.z3950-item.is-kz::after {
    content: '🇰🇿';
    position: absolute;
    top: 6px; right: 8px;
    font-size: 11px;
    opacity: .75;
    pointer-events: none;
}

/* ============================================================
   МОДАЛЬНОЕ ОКНО ОШИБОК
   ============================================================ */
#extErrorsModal .modal-dialog { max-width: 900px; }
#extErrorsModal .modal-header.bg-warning {
    background: #fef3c7 !important; color: #92400e;
}
#extErrorsModal .modal-header.bg-warning .btn-close { filter: none; opacity: .6; }
#extErrorsModal .table { font-size: .85rem; margin-bottom: 0; }
#extErrorsModal .table thead th {
    background: #f8fafc; font-size: .75rem; text-transform: uppercase;
    color: #64748b; letter-spacing: .04em; font-weight: 600;
    border-bottom: 2px solid #e2e8f0;
}
#extErrorsModal .table td { vertical-align: middle; padding: 8px 10px; }
#extErrorsModal .table code {
    background: #f1f5f9; color: #475569; padding: 1px 6px;
    border-radius: 4px; font-size: .78rem;
}

/* ============================================================
   ПОМОЩНИК БИБЛИОТЕКАРЯ
   ============================================================ */
.assistant-container {
    border-radius: 14px; border: 1px solid #e2e8f0;
    background: #fff; box-shadow: 0 1px 3px rgba(15,23,42,0.04);
}
.assistant-container .form-label { font-size: 0.78rem; font-weight: 600; color: #475569; }
.assistant-container .form-control,
.assistant-container .form-select {
    border-radius: 8px; border: 1.5px solid #e2e8f0;
    height: 40px; font-size: 0.92rem;
}
.assistant-container .form-control:focus,
.assistant-container .form-select:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79,70,229,.1);
}
.assistant-container .btn-primary {
    height: 40px; border-radius: 8px;
    background: #4f46e5; border-color: #4f46e5; font-weight: 500;
}
.assistant-container .btn-primary:hover { background: #4338ca; }

.assistant-source-card {
    background: #fff; border: 1px solid #e2e8f0;
    border-radius: 12px; margin-bottom: 14px; overflow: hidden;
}
.assistant-source-card:last-child { margin-bottom: 0; }
.assistant-source-header {
    display: flex; justify-content: space-between;
    align-items: center; padding: 10px 14px;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
    flex-wrap: wrap; gap: 8px;
}
.assistant-source-title { font-weight: 600; font-size: 0.95rem; color: #0f172a; }
.assistant-confidence {
    font-size: 0.72rem; font-weight: 600;
    padding: 2px 9px; border-radius: 20px;
}
.assistant-confidence.high   { background: #dcfce7; color: #166534; }
.assistant-confidence.medium { background: #fef3c7; color: #92400e; }
.assistant-confidence.low    { background: #fee2e2; color: #991b1b; }
.assistant-source-body { padding: 10px 14px; }

.assistant-group { margin-bottom: 12px; }
.assistant-group:last-child { margin-bottom: 0; }
.assistant-group-title {
    font-size: 0.78rem; font-weight: 700; color: #475569;
    letter-spacing: 0.04em; text-transform: uppercase;
    margin-bottom: 6px; padding-bottom: 4px;
    border-bottom: 1px dashed #e2e8f0;
}
.assistant-group-list { display: flex; flex-direction: column; gap: 2px; }
.assistant-row {
    display: flex; align-items: center; gap: 8px;
    padding: 4px 6px; border-radius: 6px;
    transition: background .12s ease;
}
.assistant-row:hover { background: #f8fafc; }
.assistant-row-label {
    flex-shrink: 0; width: 130px;
    font-size: 0.8rem; color: #64748b; text-align: right;
}
.assistant-row-value {
    flex-grow: 1; font-size: 0.88rem; color: #1e293b;
    word-break: break-word;
}
.assistant-copy-btn {
    flex-shrink: 0; background: transparent;
    border: 1px solid #cbd5e1; border-radius: 4px;
    padding: 1px 7px; cursor: pointer; font-size: 12px;
    transition: all .15s ease;
}
.assistant-copy-btn:hover { background: #e2e8f0; border-color: #94a3b8; }

.assistant-book-block {
    background: #f8fafc; border: 1px solid #eef2f6;
    border-radius: 8px; padding: 10px 12px;
    margin-bottom: 10px; overflow: hidden;
}
.assistant-book-block:last-child { margin-bottom: 0; }
.assistant-book-header {
    display: flex; align-items: baseline; gap: 8px;
    margin-bottom: 8px; padding-bottom: 6px;
    border-bottom: 1px solid #e2e8f0;
}
.assistant-book-number {
    flex-shrink: 0; font-size: 0.72rem; font-weight: 700;
    color: #0f766e; background: #ccfbf1;
    padding: 1px 7px; border-radius: 10px;
}
.assistant-book-title {
    font-weight: 600; font-size: 0.9rem;
    color: #0f172a; line-height: 1.3;
}
.assistant-book-flex {
    display: flex; gap: 10px; align-items: flex-start;
}
.assistant-book-cover { flex-shrink: 0; width: 50px; }
.assistant-book-fields { flex-grow: 1; min-width: 0; }
.assistant-book-thumb {
    width: 50px; height: 75px;
    object-fit: cover; border-radius: 4px;
    border: 1px solid #eef2f6;
    background: #f8fafc; display: block;
}
.assistant-book-thumb-empty {
    width: 50px; height: 75px;
    background: #eef2f6; border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    color: #94a3b8;
}
.assistant-book-thumb-empty::before {
    content: '📕'; font-size: 20px;
}
.assistant-model-badge {
    font-size: 0.72rem; font-weight: 600;
    padding: 2px 9px; border-radius: 20px;
    background: #ede9fe; color: #5b21b6;
}
.assistant-source-badges {
    display: inline-flex; gap: 6px; flex-wrap: wrap;
}

/* ============================================================
   СКРОЛЛБАР И ЗАГРУЗКА
   ============================================================ */
.search-books-container .table-responsive {
    border-radius: 8px; overflow-x: auto;
    max-height: 600px; overflow-y: auto;
}
.search-books-container .table-responsive::-webkit-scrollbar { width: 6px; height: 6px; }
.search-books-container .table-responsive::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
#searchLoading .spinner-border {
    width: 2.5rem; height: 2.5rem;
    border-width: 3px; color: #4f46e5;
}
#searchLoading p { color: #94a3b8; margin-top: 8px; font-weight: 500; }

/* ============================================================
   АНИМАЦИИ
   ============================================================ */
@keyframes slideDown { from{opacity:0;transform:translateY(-10px);} to{opacity:1;transform:translateY(0);} }
@keyframes fadeIn { from{opacity:0;} to{opacity:1;} }

/* ============================================================
   АДАПТИВНОСТЬ
   ============================================================ */
@media (max-width: 991.98px) {
    .search-books-container .search-main-bar { padding: 10px 12px; }
    .search-books-container .search-main-bar .form-control,
    .search-books-container .search-main-bar .form-select,
    .search-books-container .search-main-bar .input-group-text,
    .search-books-container .search-main-bar .btn { height: 40px; }
    .search-books-container .search-main-bar .form-control,
    .search-books-container .search-main-bar .form-select { font-size: 0.9rem; }
    .gs-input, .gs-btn-search, .gs-btn-stop { height: 40px; font-size: .88rem; }
}
@media (max-width: 767.98px) {
    .gs-header {
        padding: 14px 16px; gap: 12px;
        flex-direction: column;
        text-align: center;
    }
    .gs-header-icon { width: 46px; height: 46px; font-size: 1.4rem; border-radius: 12px; margin-bottom: 8px; }
    .gs-title { font-size: 1.1rem; }
    .gs-subtitle { font-size: .78rem; }
    .gs-header-text { flex-grow: 0; }

    .z3950-summary-left { font-size: .82rem; }
    .z3950-summary-actions .btn { font-size: .74rem; padding: 4px 10px; }
    .server-picker-toolbar { padding: 8px 10px; }
    .server-picker-toolbar .btn { font-size: .74rem; padding: 4px 10px; }
    .server-picker-list { max-height: 420px; }
    .server-picker-section-title { font-size: .68rem; padding: 6px 10px 3px; }

    .gs-srv-row {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "proto name"
            "addr  addr"
            "count status";
        gap: 6px;
    }
    .gs-srv-proto   { grid-area: proto; }
    .gs-srv-name    { grid-area: name; }
    .gs-srv-addr    { grid-area: addr; }
    .gs-srv-count   { grid-area: count; text-align: left; }
    .gs-srv-status  { grid-area: status; justify-self: end; }

    .kz-stats-cards { grid-template-columns: repeat(2, 1fr); }
    .kz-stats-protocols { grid-template-columns: 1fr 1fr; }
    .kz-stat-value { font-size: .95rem; }

    .assistant-row-label { width: 100px; font-size: 0.75rem; }
    .assistant-row-value { font-size: 0.82rem; }
    .stats-country-table { font-size: .78rem; }
    #extErrorsModal .table { font-size: .78rem; }
}
@media (max-width: 575.98px) {
    .search-books-container .search-main-bar { padding: 8px 10px; border-radius: 12px; }
    .search-books-container .search-main-bar .row { --bs-gutter-x:.5rem; --bs-gutter-y:.5rem; }
    .search-books-container .search-main-bar .form-control,
    .search-books-container .search-main-bar .form-select,
    .search-books-container .search-main-bar .input-group-text,
    .search-books-container .search-main-bar .btn { height: 38px; font-size: 0.88rem; }

    .gs-header { padding: 12px 14px; border-radius: 12px; }
    .gs-header-icon { width: 40px; height: 40px; font-size: 1.2rem; }
    .gs-title { font-size: 1rem; }
    .gs-subtitle { font-size: .72rem; }
    .gs-input, .gs-btn-search, .gs-btn-stop { height: 38px; font-size: .85rem; }

    .gs-result-body { padding: 10px 12px 10px 16px; gap: 10px; }
    .gs-result-thumb-wrap, .gs-result-thumb, .gs-result-thumb-empty { width: 60px; }
    .gs-result-thumb, .gs-result-thumb-empty { height: 90px; }
    .gs-result-title { font-size: .9rem; }
    .gs-result-meta { font-size: .76rem; gap: 8px; }
    .gs-mini-badge { font-size: .68rem; padding: 1px 6px; }
    .gs-result-desc { font-size: .76rem; }

    .gs-all-tabs-nav .nav-link { font-size: .76rem; padding: 5px 10px; }

    .gs-srv-block { padding: 10px 12px; }
    .gs-srv-header { flex-direction: column; align-items: flex-start; }
    .gs-srv-header-stats { font-size: .74rem; }

    .kz-stats-cards { grid-template-columns: 1fr; }
    .kz-stats-protocols { grid-template-columns: 1fr; }
    .kz-stats-block { padding: 10px 12px; }
    .kz-stats-header { flex-direction: column; align-items: flex-start; }

    .assistant-container .form-control,
    .assistant-container .btn { height: 38px; font-size: 0.88rem; }
    .assistant-source-header { padding: 8px 10px; }
    .assistant-source-title { font-size: 0.88rem; }
    .assistant-source-body { padding: 8px 10px; }
    .assistant-group-title { font-size: 0.72rem; }
    .assistant-row-label { width: 90px; font-size: 0.72rem; }
    .assistant-row-value { font-size: 0.8rem; }
    .assistant-book-title { font-size: 0.85rem; }
    .assistant-book-flex { gap: 8px; }
    .assistant-book-cover { width: 42px; }
    .assistant-book-thumb { width: 42px; height: 63px; }
    .assistant-book-thumb-empty { width: 42px; height: 63px; }
}
@media (max-width: 480px) {
    .search-books-container .search-main-bar { padding: 8px 10px; }
    .search-books-container .search-main-bar .form-control,
    .search-books-container .search-main-bar .form-select { font-size: 0.9rem; height: 40px; }
    .book-card-detail { padding: 10px; gap: 10px; }
    .abib-biblio { font-size: 0.85rem; padding: 8px 10px; }
    .abib-table { font-size: 0.8rem; }
    .abib-table .abib-label { width: 110px; }
}