.header-search-open,
.header-search-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    padding: 0;
    color: #c2c7c9;
    background: transparent;
    border: 0;
    border-radius: 9px;
    cursor: pointer;
}
.header-search-open {
    width: 36px;
    height: 36px;
    margin-left: 6px;
}
.header-search-open span { display: none; }
.header-search-open:hover, .header-search-close:hover {
    background: #242729;
    color: #fff;
}
.header-search-lens {
    display: inline-block;
    position: relative;
    flex: none;
    width: 18px;
    height: 18px;
}
.header-search-lens::before, .header-search-lens::after {
    content: '';
    position: absolute;
    box-sizing: border-box;
}
.header-search-lens::before {
    inset: 1px 4px 4px 1px;
    border: 1.7px solid currentColor;
    border-radius: 50%;
}
.header-search-lens::after {
    width: 7px;
    height: 1.7px;
    right: 0;
    bottom: 3px;
    transform: rotate(45deg);
    border-radius: 2px;
    background: currentColor;
}
@media (min-width: 992px) {
    .header-navbar .header-nav-arrow[data-direction="right"] { right: 42px; }
}

.header-search {
    --hs-surface: #151718;
    --hs-line: #35393b;
    --hs-muted: #a4aaad;
    position: fixed;
    inset: 50dvh auto auto 50vw;
    transform: translate(-50%, -50%);
    width: min(700px, calc(100vw - 24px));
    height: fit-content;
    max-width: none;
    max-height: calc(100dvh - 24px);
    margin: 0;
    padding: 0;
    border: 0;
    color: #f1f4f5;
    background: transparent;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.35;
    color-scheme: dark;
}
.header-search[open] { display: flex; flex-direction: column; gap: 8px; }
html:has(#header-search-dialog[open]) { overflow: hidden; scrollbar-gutter: stable; }
.header-search::backdrop { background: rgba(0, 0, 0, .72); }
.header-search *, .header-search { box-sizing: border-box; }
.header-search-bar, .header-search-panel {
    background: var(--hs-surface);
    border: 1px solid var(--hs-line);
    border-radius: 14px;
}
.header-search-bar {
    display: flex;
    flex: none;
    align-items: center;
    gap: 12px;
    padding: 4px 7px 4px 16px;
    color: var(--hs-muted);
}
.header-search-bar input[type="search"] {
    flex: 1;
    min-width: 0;
    height: 34px;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
    box-shadow: none;
    font: inherit;
    font-size: 15px;
    appearance: none;
}
.header-search-bar input::placeholder { color: var(--hs-muted); }
.header-search-close { width: 32px; height: 32px; }
.header-search-panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    border-radius: 16px;
}
.header-search-filters {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    border-bottom: 1px solid #292d2e;
}
.header-search-filters button {
    min-height: 32px;
    padding: 5px 13px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--hs-muted);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
.header-search-filters button:hover, .header-search-filters button[aria-pressed="true"] {
    color: #fff;
    background: #303435;
}
.header-search-results {
    min-height: 0;
    height: min(65dvh, 432px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #4b5153 transparent;
    padding: 15px 18px 18px;
}
.hs-group { min-width: 0; }
.hs-group + .hs-group, .hs-columns { margin-top: 18px; }
.hs-group-title {
    margin: 0 0 9px;
    color: var(--hs-muted);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
}
.hs-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.hs-card {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    min-height: 98px;
    border-radius: 10px;
    background: #24292b;
    isolation: isolate;
}
.hs-card img, .hs-card::after {
    position: absolute;
    z-index: -1;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hs-card::after { content: ''; background: linear-gradient(180deg, transparent 20%, rgba(0,0,0,.84)); }
.hs-card-label { padding: 9px 11px; color: #fff; font-weight: 600; }
.hs-columns, .hs-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; }
.hs-columns .hs-group { margin: 0; }
.hs-columns .hs-list { grid-template-columns: minmax(0, 1fr); }
.hs-result {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 5px 7px;
    border-radius: 8px;
    color: #e9edee;
}
.hs-result:hover, .hs-result:focus-visible { background: #262a2b; color: #fff; }
.header-search a:hover { text-decoration: none; }
.header-search :is(a,button):focus-visible, .header-search-open:focus-visible {
    outline: 2px solid #00d5ed;
    outline-offset: -2px;
}
.hs-mark {
    flex: none;
    display: grid;
    place-items: center;
    width: 22px;
    height: 24px;
    color: #aab8bc;
}
.hs-mark svg, .hs-mark .icon { width: 18px; height: 18px; }
.hs-model-mark::before, .hs-section-mark::before {
    content: '';
    width: 13px;
    height: 13px;
    border: 1.5px solid currentColor;
    border-radius: 4px;
}
.hs-model-mark::before { transform: rotate(45deg); }
.hs-section-mark::before { box-shadow: inset 0 3px #75878b; }
.hs-result-text { display: grid; min-width: 0; gap: 1px; }
.hs-result-name { overflow-wrap: anywhere; font-weight: 550; }
.hs-result-group { color: var(--hs-muted); font-size: 11px; }
.hs-empty { margin: 0; padding: 30px 0; color: var(--hs-muted); text-align: center; }

@media (max-width: 991.98px) {
    .header-navbar .navbar-collapse.show { display: flex; flex-direction: column; align-items: stretch; }
    .header-search-open {
        order: -1;
        width: auto;
        min-height: 42px;
        justify-content: flex-start;
        gap: 10px;
        margin: 10px 10px 0;
        padding: 0 12px;
        background: #252829;
    }
    .header-search-open span { display: inline; }
}
@media (max-width: 575px) {
    .header-search { width: calc(100vw - 16px); }
    .header-search-results { height: 72dvh; padding: 12px; }
    .hs-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hs-card { min-height: 75px; }
    .hs-columns, .hs-list { grid-template-columns: 1fr; row-gap: 2px; }
    .hs-columns { row-gap: 16px; }
    .hs-columns .hs-group:last-child { order: -1; }
}
