.library-search { padding-top: 24px; }
.library-search__card {
    overflow: hidden;
    border: 1px solid #dce3e9;
    border-radius: 16px;
    background: #fff;
    color: #243447;
    box-shadow: 0 8px 30px rgba(7, 41, 77, .07);
}
.library-search__header {
    padding: 20px 32px 16px;
    background: #f4f7fa;
}
.library-search__header h2 {
    margin: 0 0 6px;
    font-size: 30px;
    line-height: 1.25;
    color: #07294d;
}
.library-search__header p { margin: 0; }
.library-search__tabs {
    display: flex;
    padding: 0 32px;
    gap: 24px;
    border-bottom: 1px solid #dce3e9;
}
.library-search [hidden] { display: none !important; }
.library-search__tabs button {
    flex: 1 1 0;
    min-width: 0;
    min-height: 44px;
    padding: 12px 8px 9px;
    border: 0;
    border-bottom: 3px solid transparent;
    background: transparent;
    color: #34495e;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
.library-search__tabs button span {
    display: inline-block;
    margin-left: 6px;
    font-size: 12px;
    letter-spacing: .04em;
}
.library-search__tabs button[aria-selected="true"] {
    border-bottom-color: #07294d;
    color: #07294d;
}
.library-search__tabs button:hover { background: #f4f7fa; color: #07294d; }
.library-search__panel { padding: 16px 32px; }
.library-search .library-search__sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.library-search__controls { display: flex; gap: 12px; }
.library-search__controls input {
    flex: 1;
    min-width: 0;
    min-height: 54px;
    padding: 12px 18px;
    border: 1px solid #7b8b9b;
    border-radius: 8px;
    background: #fff;
    color: #243447;
    font: inherit;
}
.library-search__controls input::placeholder { color: #536477; opacity: 1; }
.library-search__controls button {
    min-height: 54px;
    padding: 12px 30px;
    border: 1px solid #07294d;
    border-radius: 8px;
    background: #07294d;
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
.library-search__controls button span { margin-left: 14px; }
.library-search__controls button:hover { background: #123e68; }
.library-search__controls button:disabled { opacity: .6; cursor: not-allowed; }
.library-search__panel a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 44px;
    color: #07294d;
    font-size: 14px;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.library-search__card :is(input, button, a):focus-visible {
    outline: 3px solid #1665b5;
    outline-offset: 3px;
}
.library-search__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px 20px;
    margin-top: 4px;
}
.library-search__meta > a { flex-shrink: 0; }
.library-search__help { margin: 0; color: #536477; font-size: 13px; }
@media (max-width: 575px) {
    .library-search__header { padding: 16px 20px 12px; }
    .library-search__panel { padding: 14px 20px; }
    .library-search__header h2 { font-size: 26px; }
    .library-search__tabs { padding: 0 12px; gap: 8px; }
    .library-search__tabs button { font-size: 14px; }
    .library-search__tabs button span { margin-left: 4px; font-size: 11px; }
    .library-search__controls { flex-direction: column; }
    .library-search__meta { align-items: flex-start; flex-direction: column; gap: 0; margin-top: 10px; }
}
