
/* Search field: one clean surface, clear touch target, no nested outlines. */
body .th .searchx,
body.darkmode .th .searchx {
    display: flex !important;
    align-items: center !important;
    height: 44px !important;
    width: clamp(220px, 24vw, 320px) !important;
    min-width: 0 !important;
    margin: 0 0 0 16px !important;
    padding: 0 4px 0 14px !important;
    box-sizing: border-box !important;
    background: rgba(226, 242, 244, .055) !important;
    border: 1px solid rgba(196, 220, 224, .13) !important;
    border-radius: 13px !important;
    box-shadow: none !important;
    transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease !important;
}

body .th .searchx:focus-within,
body.darkmode .th .searchx:focus-within {
    background: rgba(226, 242, 244, .075) !important;
    border-color: rgba(114, 215, 208, .62) !important;
    box-shadow: 0 0 0 3px rgba(114, 215, 208, .12) !important;
}

body .th .searchx form,
body.darkmode .th .searchx form {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 100% !important;
}

body .th .searchx form input,
body.darkmode .th .searchx form input {
    order: 1 !important;
    flex: 1 1 auto !important;
    width: 1px !important;
    min-width: 0 !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    color: #e6eef1 !important;
    font-size: 14px !important;
    line-height: 1.3 !important;
}

body .th .searchx form input::placeholder,
body.darkmode .th .searchx form input::placeholder {
    color: #a2b0b9 !important;
    opacity: 1 !important;
}

body .th .searchx form button,
body.darkmode .th .searchx form button {
    order: 2 !important;
    flex: 0 0 40px !important;
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: transparent !important;
    color: #a9bbc4 !important;
    box-shadow: none !important;
    transform: none !important;
    cursor: pointer !important;
}

body .th .searchx form button:hover,
body.darkmode .th .searchx form button:hover,
body .th .searchx form button:focus-visible,
body.darkmode .th .searchx form button:focus-visible {
    background: rgba(114, 215, 208, .11) !important;
    color: #a4ebe4 !important;
    outline: 2px solid rgba(114, 215, 208, .45) !important;
    outline-offset: 1px !important;
}

body .th .searchx form button i,
body.darkmode .th .searchx form button i {
    font-size: 18px !important;
    line-height: 1 !important;
}

@media (max-width: 768px) {
    body .th .centernav .searchx,
    body.darkmode .th .centernav .searchx,
    body .th .centernav .searchx.minmb,
    body.darkmode .th .centernav .searchx.minmb {
        order: 4 !important;
        width: 100% !important;
        height: 48px !important;
        margin: 12px 0 0 !important;
        padding: 0 4px 0 14px !important;
        border-radius: 14px !important;
    }

    body .th .centernav .searchx form input,
    body.darkmode .th .centernav .searchx form input {
        font-size: 16px !important;
    }

    body .th .centernav .searchx form button,
    body.darkmode .th .centernav .searchx form button {
        flex-basis: 42px !important;
        width: 42px !important;
        min-width: 42px !important;
        height: 42px !important;
        border-radius: 11px !important;
    }
}
